Browse Source

Fix typo in integration tests documentation

Fix #24172
pull/24173/head
Ma Liming 3 months ago
committed by GitHub
parent
commit
937fe86acf
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      docs/en/testing/integration-tests.md

2
docs/en/testing/integration-tests.md

@ -350,7 +350,7 @@ There are multiple overloads of the `WithUnitOfWorkAsync` method that you can us
## Working with DbContext
In some cases, you may want to directory work with the [Entity Framework's `DbContext` object](https://learn.microsoft.com/en-us/dotnet/api/system.data.entity.dbcontext) to perform database operations in your test methods. In this case, you can use `IDbContextProvider<T>`service to obtain a `DbContext` instance inside a unit of work.
In some cases, you may want to directly work with the [Entity Framework's `DbContext` object](https://learn.microsoft.com/en-us/dotnet/api/system.data.entity.dbcontext) to perform database operations in your test methods. In this case, you can use `IDbContextProvider<T>`service to obtain a `DbContext` instance inside a unit of work.
The following example shows how you can create a `DbContext` object in a test method:

Loading…
Cancel
Save