912 B
912 B
Tester_Agent - Conversation Entity Tests
Task:
Create unit tests for Conversation entity
Requirements:
- Create tests in Chat.Tests project
- Test all Conversation entity properties:
- Id
- Participant1Id
- Participant2Id
- CreatedAt
- LastMessageId (nullable)
- LastMessageAt
- UnreadCount1
- UnreadCount2
Test Cases to Implement:
- Test_CanCreateConversationWithDefaultValues
- Test_CanCreateConversationWithAllProperties
- Test_ConversationPropertiesAreCorrectlySet
- Test_LastMessageIdCanBeNullable
- Test_CreatedAtDefaultsToCurrentTime
- Test_UnreadCountsDefaultToZero
Test Framework:
- Use xUnit
- Use FluentAssertions for assertions
Output Location:
/mnt/data/Work/Programming/MainProgram/Backend/APIs/ERP/Managerial/Communication/Chat/Chat.Tests/ConversationTests.cs
Status:
- Create test file
- Implement all test cases
- Ensure tests compile