Repopulating InMemoryDb between tests
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user