Files
ERP/Managerial/Communication/Chat/tester_agent_instructions.md
T
2026-08-05 21:15:15 +03:00

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:

  1. Test_CanCreateConversationWithDefaultValues
  2. Test_CanCreateConversationWithAllProperties
  3. Test_ConversationPropertiesAreCorrectlySet
  4. Test_LastMessageIdCanBeNullable
  5. Test_CreatedAtDefaultsToCurrentTime
  6. 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