You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L199-L208'title='Snippet source file'>snippet source</a> | <ahref='#snippet-alldata'title='Start of snippet'>anchor</a></sup>
415
+
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L196-L205'title='Snippet source file'>snippet source</a> | <ahref='#snippet-alldata'title='Start of snippet'>anchor</a></sup>
414
416
<!-- endSnippet -->
415
417
416
418
Will result in the following verified file with all data in the database:
@@ -494,32 +496,30 @@ public async Task IgnoreNavigationProperties()
494
496
x=>x.IgnoreNavigationProperties(data));
495
497
}
496
498
```
497
-
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L74-L97'title='Snippet source file'>snippet source</a> | <ahref='#snippet-ignorenavigationproperties'title='Start of snippet'>anchor</a></sup>
499
+
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L77-L100'title='Snippet source file'>snippet source</a> | <ahref='#snippet-ignorenavigationproperties'title='Start of snippet'>anchor</a></sup>
498
500
<!-- endSnippet -->
499
501
502
+
500
503
## WebApplicationFactory
501
504
502
-
To be able to use [WebApplicationFactory](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.testing.webapplicationfactory-1) for [integration testing](https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests)
503
-
an identifier must be used to be able to retrive the recorded commands. Start by enable recording with a unique identifier, for example the test name or a GUID:
505
+
To be able to use [WebApplicationFactory](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.testing.webapplicationfactory-1) for [integration testing](https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests)an identifier must be used to be able to retrieve the recorded commands. Start by enable recording with a unique identifier, for example the test name or a GUID:
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L394-L405'title='Snippet source file'>snippet source</a> | <ahref='#snippet-enablerecordingwithidentifier'title='Start of snippet'>anchor</a></sup>
519
+
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L397-L408'title='Snippet source file'>snippet source</a> | <ahref='#snippet-enablerecordingwithidentifier'title='Start of snippet'>anchor</a></sup>
520
520
<!-- endSnippet -->
521
521
522
-
Then use the same identifer for recording:
522
+
Then use the same identifier for recording:
523
523
524
524
<!-- snippet: RecordWithIdentifier -->
525
525
<aid='snippet-recordwithidentifier'></a>
@@ -532,7 +532,7 @@ var companies = await httpClient.GetFromJsonAsync<Company[]>("/companies");
532
532
533
533
varentries=EfRecording.FinishRecording(testName);
534
534
```
535
-
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L364-L372'title='Snippet source file'>snippet source</a> | <ahref='#snippet-recordwithidentifier'title='Start of snippet'>anchor</a></sup>
535
+
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L364-L374'title='Snippet source file'>snippet source</a> | <ahref='#snippet-recordwithidentifier'title='Start of snippet'>anchor</a></sup>
536
536
<!-- endSnippet -->
537
537
538
538
The results will not be automatically included in verified file so it will have to be verified manually:
@@ -546,9 +546,10 @@ await Verify(new
546
546
sql=entries
547
547
});
548
548
```
549
-
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L374-L380'title='Snippet source file'>snippet source</a> | <ahref='#snippet-verifyrecordedcommandswithidentifier'title='Start of snippet'>anchor</a></sup>
549
+
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L376-L384'title='Snippet source file'>snippet source</a> | <ahref='#snippet-verifyrecordedcommandswithidentifier'title='Start of snippet'>anchor</a></sup>
550
550
<!-- endSnippet -->
551
551
552
+
552
553
## Icon
553
554
554
555
[Database](https://thenounproject.com/term/database/310841/) designed by [Creative Stall](https://thenounproject.com/creativestall/) from [The Noun Project](https://thenounproject.com).
0 commit comments