Refactor nunit tests off InMemory/WebApplicationFactory, remove tuple returns #4
Reference in New Issue
Block a user
Delete Branch "unit-test-refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
IMicCheckDbContextand mock DB access with Moq instead of the EF InMemory provider, per CLAUDE.md testing guidelines.WebApplicationFactory.PagedResult<T>,ProfileUpdateResult,ApiKeyCreationResult).Test plan
dotnet build(full solution)dotnet test tests/api/MicCheck.Api.Tests.Unit— 187/187 passdotnet test tests/api/MicCheck.Api.Tests.Integration— 8/8 pass (live API + Postgres via Aspire)