How do you test EF Core features (unit tests / integration tests)?
- Unit Tests: Focus on logic without actual database. Use mocks or in-memory
databases to isolate tests.
- Integration Tests: Use real database (or test instance) to validate EF Core behavior,
migrations, and data persistence.
- Tests cover CRUD operations, queries, and business logic using EF Core.