Skip to content

feat: add reactions and implement Unit of Work pattern #131

feat: add reactions and implement Unit of Work pattern

feat: add reactions and implement Unit of Work pattern #131

GitHub Actions / .NET test results succeeded Oct 7, 2024 in 0s

17 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
tests/CrowdParlay.Social.IntegrationTests/TestResults/_fv-az661-64_2024-10-07_17_07_40.trx 13✅ 53s
tests/CrowdParlay.Social.UnitTests/TestResults/_fv-az661-64_2024-10-07_17_06_52.trx 4✅ 1s

✅ tests/CrowdParlay.Social.IntegrationTests/TestResults/_fv-az661-64_2024-10-07_17_07_40.trx

13 tests were completed in 53s with 13 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CrowdParlay.Social.IntegrationTests.Tests.CommentsRepositoryTests 5✅ 4s
CrowdParlay.Social.IntegrationTests.Tests.DiscussionsRepositoryTests 3✅ 3s
CrowdParlay.Social.IntegrationTests.Tests.HttpContractsTests 3✅ 3s
CrowdParlay.Social.IntegrationTests.Tests.ReactionsRepositoryTests 1✅ 3s
CrowdParlay.Social.IntegrationTests.Tests.SignalRTests 1✅ 2s

✅ CrowdParlay.Social.IntegrationTests.Tests.CommentsRepositoryTests

✅ Create comment
✅ Create comment with unknown author and discussion
✅ Get comment with unknown ID
✅ Get replies to comment
✅ Search comments

✅ CrowdParlay.Social.IntegrationTests.Tests.DiscussionsRepositoryTests

✅ Get all discussions
✅ Get discussions by author
✅ Get discussions by author of no discussions

✅ CrowdParlay.Social.IntegrationTests.Tests.HttpContractsTests

✅ Preflight request to SignalR returns specific CORS allowed origins
✅ Resource not found error is returned as RFC 7807 problem details
✅ Responses are JSON-serialized in snake case

✅ CrowdParlay.Social.IntegrationTests.Tests.ReactionsRepositoryTests

✅ Add reactions

✅ CrowdParlay.Social.IntegrationTests.Tests.SignalRTests

✅ Listen to new comments in discussion

✅ tests/CrowdParlay.Social.UnitTests/TestResults/_fv-az661-64_2024-10-07_17_06_52.trx

4 tests were completed in 1s with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CrowdParlay.Social.UnitTests.UsersServiceCachingDecoratorTests 4✅ 346ms

✅ CrowdParlay.Social.UnitTests.UsersServiceCachingDecoratorTests

✅ Get user by ID returns cached result if possible(userPresentInCache: False)
✅ Get user by ID returns cached result if possible(userPresentInCache: True)
✅ Get users by IDs returns cached results if possible(usersPresentInCache: False)
✅ Get users by IDs returns cached results if possible(usersPresentInCache: True)