This commit is contained in:
GitHub Action 2023-10-28 10:50:47 +00:00
Родитель 96a9e5562c
Коммит 8da7f464f4
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -164,7 +164,7 @@ await Verify(new
sql = entries
});
```
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.cs#L511-L534' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingspecific' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.cs#L513-L536' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingspecific' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->
@ -556,13 +556,14 @@ To be able to use [WebApplicationFactory](https://docs.microsoft.com/en-us/dotne
```cs
.ConfigureTestServices(services =>
{
var builder = new DbContextOptionsBuilder<SampleDbContext>()
var dataBuilder = new DbContextOptionsBuilder<SampleDbContext>()
.EnableRecording(name)
.UseSqlite($"Data Source={name};Mode=Memory;Cache=Shared");
services.AddScoped(_ => builder.Options);
services.AddScoped(_ => dataBuilder.Options);
});
}
```
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.cs#L470-L480' title='Snippet source file'>snippet source</a> | <a href='#snippet-enablerecordingwithidentifier' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.cs#L471-L482' title='Snippet source file'>snippet source</a> | <a href='#snippet-enablerecordingwithidentifier' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->
Then use the same identifier for recording: