Repopulating InMemoryDb between tests

This commit is contained in:
TypoMustakes
2023-12-13 12:12:30 +01:00
parent 339dbb3365
commit 656eccd4db
2 changed files with 2 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ namespace WD7UVN_HFT_2023241.Test
public void Setup() public void Setup()
{ {
logic = new LogicServices(new CRUD()); logic = new LogicServices(new CRUD());
Database.Context = new CompanyDbContext();
} }
[Test] [Test]

View File

@@ -13,6 +13,7 @@ namespace WD7UVN_HFT_2023241.Test
public void Setup() public void Setup()
{ {
logic = new LogicServices(new CRUD()); logic = new LogicServices(new CRUD());
Database.Context = new CompanyDbContext();
} }
[Test] [Test]