File tree Expand file tree Collapse file tree
Comanda.Payments/Tests/Fixtures
Comanda.Stores/Tests/Fixtures Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public WebApplicationFixture()
2020 public async ValueTask InitializeAsync ( )
2121 {
2222 await _databaseFixture . InitializeAsync ( ) ;
23+ await _databaseFixture . CleanDatabaseAsync ( ) ;
2324
2425 Environment . SetEnvironmentVariable ( "Settings__Database__ConnectionString" , _databaseFixture . ConnectionString ) ;
2526 Environment . SetEnvironmentVariable ( "Settings__Database__DatabaseName" , _databaseFixture . DatabaseName ) ;
@@ -65,8 +66,7 @@ public async ValueTask DisposeAsync()
6566 {
6667 HttpClient . Dispose ( ) ;
6768
68- await _factory . DisposeAsync ( ) ;
69- await _databaseFixture . CleanDatabaseAsync ( ) ;
69+ await _factory . DisposeAsync ( )
7070 await _databaseFixture. DisposeAsync ( ) ;
7171 }
7272}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public WebApplicationFixture()
1717 public async ValueTask InitializeAsync ( )
1818 {
1919 await _databaseFixture . InitializeAsync ( ) ;
20+ await _databaseFixture . CleanDatabaseAsync ( ) ;
2021
2122 Environment . SetEnvironmentVariable ( "Settings__Database__ConnectionString" , _databaseFixture . ConnectionString ) ;
2223 Environment . SetEnvironmentVariable ( "Settings__Database__DatabaseName" , _databaseFixture . DatabaseName ) ;
@@ -50,7 +51,6 @@ public async ValueTask DisposeAsync()
5051 HttpClient . Dispose ( ) ;
5152
5253 await _factory . DisposeAsync ( ) ;
53- await _databaseFixture . CleanDatabaseAsync ( ) ;
5454 await _databaseFixture . DisposeAsync ( ) ;
5555 }
5656}
You can’t perform that action at this time.
0 commit comments