Summary
Dependabot PR #309 attempted to bump MockQueryable.Moq from 7.0.3 to 10.0.5 but the major version jump introduces breaking API changes. The BuildMockDbSet<TEntity> extension method signature changed, causing CS0411 type inference errors across the test suite.
Scope
- 67 test files use
BuildMockDbSet and will need updating
- All files are in
backend/tests/PropertyManager.Application.Tests/
Steps
- Review MockQueryable.Moq v10 changelog/migration guide for API changes
- Update all
BuildMockDbSet usages to match the new API
- Verify all tests pass locally (
dotnet test)
References
Summary
Dependabot PR #309 attempted to bump
MockQueryable.Moqfrom 7.0.3 to 10.0.5 but the major version jump introduces breaking API changes. TheBuildMockDbSet<TEntity>extension method signature changed, causing CS0411 type inference errors across the test suite.Scope
BuildMockDbSetand will need updatingbackend/tests/PropertyManager.Application.Tests/Steps
BuildMockDbSetusages to match the new APIdotnet test)References