Skip to content

Commit

Permalink
Update Rule “efcore-in-memory-provider/rule” (#7396)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDevAU authored Dec 1, 2023
1 parent cfcc1b0 commit c043903
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rules/efcore-in-memory-provider/rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,8 @@ var dbContext = new ApplicationDbContext(options);
While the EF Core In-Memory provider is useful for isolating unit tests, it's important to recognize its limitations:

* **Behavioral Differences:** It doesn't emulate all aspects of a SQL Server provider, such as certain constraints or transaction behaviors.
* **Not Suitable for Query-focused Tests:** For tests that focus on EF queries, more realistic results can be achieved through integration tests with an actual database.
* **Not Suitable for Query-focused Tests:** For tests that focus on EF queries, more realistic results can be achieved through integration tests with an actual database.

::: info
Checkout [JK's EF Core Testing Repository](https://github.com/jernejk/MixedEFCoreUnitTesting) for comprehensive examples and advanced scenarios in EF Core testing.
:::

0 comments on commit c043903

Please sign in to comment.