Skip to content

Conversation

@anna-dieu
Copy link

Summary

Added comprehensive unit test suite for GoodBooks Services project using xUnit framework and Moq for mocking.

Changes

  • Created GoodBooks.ServicesTests xUnit project with 31 passing tests
  • Tests cover repository operations, base DTO validation, and Company DTO patterns
  • Added reusable MockRepositoryFixtures for consistent mock setup
  • Simplified README with quick-start commands

Test Coverage

  • BaseServiceTests: 8 tests for repository operations (SequenceNumber, GeneralLedgerSetting, Bank)
  • BaseDtoTests: 7 tests for base DTO class properties and inheritance
  • CompanyDtoTests: 10 tests demonstrating complete DTO testing pattern
  • Total: 31 passing tests, 0 failures

Testing

Run tests with:

dotnet test test/GoodBooks.ServicesTests/

ydongchoi and others added 30 commits August 3, 2024 22:27
Bdiep6 and others added 30 commits November 26, 2025 23:10
146 - Brian Diep - Accounts Receivable >> Sales Orders
Implemented editable subaccounts and delete protection logic in Chart…
149 GemSha - Convert Customer and Contact Pages to Blazor
…cation title Receipt Allocation to Sales Receipt Allocation
Fix the version of SQL Server database image in Aspire
147 - Brian Diep - Accounts Receivable >> Sales Receipts
#165, #191: Make the BlazorGDB participate in Aspire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.