File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Test/UnitTests/TestDataLayer Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 88using Test . Helpers ;
99using TestSupport . EfHelpers ;
1010using Xunit ;
11+ using Xunit . Abstractions ;
1112using Xunit . Extensions . AssertExtensions ;
1213
1314namespace Test . UnitTests . TestDataLayer
1415{
1516 public class TestSqliteInMemory
1617 {
18+ private readonly ITestOutputHelper _output ;
19+
20+ public TestSqliteInMemory ( ITestOutputHelper output )
21+ {
22+ _output = output ;
23+ }
24+
25+
1726 [ Fact ]
1827 public void TestSqliteOk ( )
1928 {
@@ -22,7 +31,8 @@ public void TestSqliteOk()
2231 . CreateOptions < BookContext > ( ) ; //#A
2332 using ( var context = new BookContext ( options ) ) //#B
2433 {
25- context . Database . EnsureCreated ( ) ; //#C
34+ using ( new TimeThings ( _output ) )
35+ context . Database . EnsureCreated ( ) ; //#C
2636
2737 //ATTEMPT
2838 context . SeedDatabaseFourBooks ( ) ; //#D
You can’t perform that action at this time.
0 commit comments