Очистка mock-объектов делать ПОСЛЕ завершения тестов
This commit is contained in:
parent
0c79a9475d
commit
6b507e4350
@ -23,7 +23,7 @@ internal class PostBusinessLogicContractTests
|
||||
_postBusinessLogicContract = new PostBusinessLogicContract(_postStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
[TearDown]
|
||||
public void SetUp()
|
||||
{
|
||||
_postStorageContract.Reset();
|
||||
|
@ -23,7 +23,7 @@ internal class ProductBusinessLogicContractTests
|
||||
_productBusinessLogicContract = new ProductBusinessLogicContract(_productStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
[TearDown]
|
||||
public void SetUp()
|
||||
{
|
||||
_productStorageContract.Reset();
|
||||
|
@ -20,6 +20,7 @@ internal class SalaryBusinessLogicContractTests
|
||||
private Mock<IPostStorageContract> _postStorageContract;
|
||||
|
||||
private Mock<IWorkerStorageContract> _workerStorageContract;
|
||||
|
||||
[OneTimeSetUp]
|
||||
public void OneTimeSetUp()
|
||||
{
|
||||
@ -34,7 +35,7 @@ internal class SalaryBusinessLogicContractTests
|
||||
_salaryBusinessLogicContract = new SalaryBusinessLogicContract(_salaryStorageContract.Object, _saleStorageContract.Object, _postStorageContract.Object, _workerStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
[TearDown]
|
||||
public void SetUp()
|
||||
{
|
||||
_salaryStorageContract.Reset();
|
||||
|
@ -22,7 +22,7 @@ internal class SaleBusinessLogicContractTests
|
||||
_saleBusinessLogicContract = new SaleBusinessLogicContract(_saleStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
[TearDown]
|
||||
public void SetUp()
|
||||
{
|
||||
_saleStorageContract.Reset();
|
||||
|
@ -23,7 +23,7 @@ internal class WorkerBusinessLogicContractTests
|
||||
_workerBusinessLogicContract = new WorkerBusinessLogicContract(_workerStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
[TearDown]
|
||||
public void SetUp()
|
||||
{
|
||||
_workerStorageContract.Reset();
|
||||
|
Loading…
x
Reference in New Issue
Block a user