@@ -87,7 +87,7 @@ builder.UseSqlServer(connection);
8787builder .EnableRecording ();
8888var data = new SampleDbContext (builder .Options );
8989```
90- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L384-L391 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-EnableRecording ' title =' Start of snippet ' >anchor</a ></sup >
90+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L340-L347 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-EnableRecording ' title =' Start of snippet ' >anchor</a ></sup >
9191<!-- endSnippet -->
9292
9393` EnableRecording ` should only be called in the test context.
@@ -116,7 +116,7 @@ await data
116116
117117await Verify ();
118118```
119- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L483-L501 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Recording ' title =' Start of snippet ' >anchor</a ></sup >
119+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L439-L457 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Recording ' title =' Start of snippet ' >anchor</a ></sup >
120120<!-- endSnippet -->
121121
122122Will result in the following verified file:
@@ -168,7 +168,7 @@ await Verify(
168168 entries
169169 });
170170```
171- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L674-L699 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-RecordingSpecific ' title =' Start of snippet ' >anchor</a ></sup >
171+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L630-L655 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-RecordingSpecific ' title =' Start of snippet ' >anchor</a ></sup >
172172<!-- endSnippet -->
173173
174174
@@ -200,7 +200,7 @@ await data2
200200
201201await Verify ();
202202```
203- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L451-L474 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-MultiDbContexts ' title =' Start of snippet ' >anchor</a ></sup >
203+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L407-L430 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-MultiDbContexts ' title =' Start of snippet ' >anchor</a ></sup >
204204<!-- endSnippet -->
205205
206206<!-- snippet: CoreTests.MultiDbContexts.verified.txt -->
@@ -265,7 +265,7 @@ await data
265265
266266await Verify ();
267267```
268- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L545-L568 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-RecordingDisableForInstance ' title =' Start of snippet ' >anchor</a ></sup >
268+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L501-L524 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-RecordingDisableForInstance ' title =' Start of snippet ' >anchor</a ></sup >
269269<!-- endSnippet -->
270270
271271<!-- snippet: CoreTests.RecordingDisabledTest.verified.txt -->
@@ -313,7 +313,7 @@ public async Task Added()
313313 await Verify (data .ChangeTracker );
314314}
315315```
316- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L87-L103 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Added ' title =' Start of snippet ' >anchor</a ></sup >
316+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L43-L59 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Added ' title =' Start of snippet ' >anchor</a ></sup >
317317<!-- endSnippet -->
318318
319319Will result in the following verified file:
@@ -358,7 +358,7 @@ public async Task Deleted()
358358 await Verify (data .ChangeTracker );
359359}
360360```
361- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L105-L124 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Deleted ' title =' Start of snippet ' >anchor</a ></sup >
361+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L61-L80 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Deleted ' title =' Start of snippet ' >anchor</a ></sup >
362362<!-- endSnippet -->
363363
364364Will result in the following verified file:
@@ -403,7 +403,7 @@ public async Task Modified()
403403 await Verify (data .ChangeTracker );
404404}
405405```
406- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L126-L146 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Modified ' title =' Start of snippet ' >anchor</a ></sup >
406+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L82-L102 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Modified ' title =' Start of snippet ' >anchor</a ></sup >
407407<!-- endSnippet -->
408408
409409Will result in the following verified file:
@@ -438,7 +438,7 @@ var queryable = data.Companies
438438 .Where (_ => _ .Name == " company name" );
439439await Verify (queryable );
440440```
441- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L341-L347 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Queryable ' title =' Start of snippet ' >anchor</a ></sup >
441+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L297-L303 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-Queryable ' title =' Start of snippet ' >anchor</a ></sup >
442442<!-- endSnippet -->
443443
444444Will result in the following verified files:
@@ -505,7 +505,7 @@ await Verify(data.AllData())
505505 serializer =>
506506 serializer .TypeNameHandling = TypeNameHandling .Objects );
507507```
508- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L320-L327 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-AllData ' title =' Start of snippet ' >anchor</a ></sup >
508+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L276-L283 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-AllData ' title =' Start of snippet ' >anchor</a ></sup >
509509<!-- endSnippet -->
510510
511511Will result in the following verified file with all data in the database:
@@ -588,7 +588,7 @@ public async Task IgnoreNavigationProperties()
588588 .IgnoreNavigationProperties ();
589589}
590590```
591- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L148-L170 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-IgnoreNavigationProperties ' title =' Start of snippet ' >anchor</a ></sup >
591+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L104-L126 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-IgnoreNavigationProperties ' title =' Start of snippet ' >anchor</a ></sup >
592592<!-- endSnippet -->
593593
594594
@@ -601,7 +601,7 @@ var options = DbContextOptions();
601601using var data = new SampleDbContext (options );
602602VerifyEntityFramework .IgnoreNavigationProperties ();
603603```
604- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L198-L204 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-IgnoreNavigationPropertiesGlobal ' title =' Start of snippet ' >anchor</a ></sup >
604+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L154-L160 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-IgnoreNavigationPropertiesGlobal ' title =' Start of snippet ' >anchor</a ></sup >
605605<!-- endSnippet -->
606606
607607
@@ -622,7 +622,7 @@ protected override void ConfigureWebHost(IWebHostBuilder webBuilder)
622622 _ => dataBuilder .Options ));
623623}
624624```
625- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L628-L640 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-EnableRecordingWithIdentifier ' title =' Start of snippet ' >anchor</a ></sup >
625+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L584-L596 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-EnableRecordingWithIdentifier ' title =' Start of snippet ' >anchor</a ></sup >
626626<!-- endSnippet -->
627627
628628Then use the same identifier for recording:
@@ -638,7 +638,7 @@ var companies = await httpClient.GetFromJsonAsync<Company[]>("/companies");
638638
639639var entries = Recording .Stop (testName );
640640```
641- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L601-L611 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-RecordWithIdentifier ' title =' Start of snippet ' >anchor</a ></sup >
641+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L557-L567 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-RecordWithIdentifier ' title =' Start of snippet ' >anchor</a ></sup >
642642<!-- endSnippet -->
643643
644644The results will not be automatically included in verified file so it will have to be verified manually:
@@ -653,7 +653,7 @@ await Verify(
653653 sql = entries
654654 });
655655```
656- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L613-L622 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-VerifyRecordedCommandsWithIdentifier ' title =' Start of snippet ' >anchor</a ></sup >
656+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L569-L578 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-VerifyRecordedCommandsWithIdentifier ' title =' Start of snippet ' >anchor</a ></sup >
657657<!-- endSnippet -->
658658
659659
@@ -680,7 +680,7 @@ var settings = new VerifySettings();
680680settings .ScrubInlineEfDateTimes ();
681681await Verify (target , settings );
682682```
683- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L34-L40 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ScrubInlineEfDateTimesInstance ' title =' Start of snippet ' >anchor</a ></sup >
683+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L21-L27 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ScrubInlineEfDateTimesInstance ' title =' Start of snippet ' >anchor</a ></sup >
684684<!-- endSnippet -->
685685
686686
@@ -692,7 +692,7 @@ await Verify(target, settings);
692692await Verify (target )
693693 .ScrubInlineEfDateTimes ();
694694```
695- <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L48-L53 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ScrubInlineEfDateTimesFluent ' title =' Start of snippet ' >anchor</a ></sup >
695+ <sup ><a href =' /src/Verify.EntityFramework.Tests/CoreTests.cs#L35-L40 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ScrubInlineEfDateTimesFluent ' title =' Start of snippet ' >anchor</a ></sup >
696696<!-- endSnippet -->
697697
698698
0 commit comments