Лабораторная работа 2. Изменен порядок выполнения тестов (SetUp на TearDown)
This commit is contained in:
parent
1789fc17d1
commit
3978ab3287
@ -20,8 +20,8 @@ internal class BuyerBusinessLogicContractTests
|
||||
_buyerBusinessLogicContract = new BuyerBusinessLogicContract(_buyerStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
_buyerStorageContract.Reset();
|
||||
}
|
||||
|
@ -26,8 +26,8 @@ namespace NorthBridgeTest.BusinessLogicsContractsTests
|
||||
_componentBusinessLogicContract = new ComponentBusinessLogicContract(_componentStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
_componentStorageContract.Reset();
|
||||
}
|
||||
|
@ -20,8 +20,8 @@ internal class ManufacturerBusinessLogicContractTests
|
||||
_manufacturerBusinessLogicContract = new ManufacturerBusinessLogicContract(_manufacturerStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
_manufacturerStorageContract.Reset();
|
||||
}
|
||||
|
@ -21,8 +21,8 @@ internal class PostBusinessLogicContractTests
|
||||
_postBusinessLogicContract = new PostBusinessLogicContract(_postStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
_postStorageContract.Reset();
|
||||
}
|
||||
|
@ -4,11 +4,6 @@ using NorthBridgeBusinessLogic.Implementations;
|
||||
using NorthBridgeContract.DataModels;
|
||||
using NorthBridgeContract.Enums;
|
||||
using NorthBridgeContract.StoragesContracts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace NorthBridgeTest.BusinessLogicsContractsTests
|
||||
{
|
||||
@ -27,8 +22,8 @@ namespace NorthBridgeTest.BusinessLogicsContractsTests
|
||||
_productBusinessLogicContract = new ProductBusinessLogicContract(_productStorageContract.Object, _logger.Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
_productStorageContract.Reset();
|
||||
}
|
||||
|
@ -28,8 +28,8 @@ internal class SalaryBusinessLogicContractTests
|
||||
_saleStorageContract.Object, _postStorageContract.Object, _workerStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
_salaryStorageContract.Reset();
|
||||
_saleStorageContract.Reset();
|
||||
|
@ -21,8 +21,8 @@ internal class SaleBusinessLogicContractTests
|
||||
_saleBusinessLogicContract = new SaleBusinessLogicContract(_saleStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
_saleStorageContract.Reset();
|
||||
}
|
||||
|
@ -20,8 +20,8 @@ internal class WorkerBusinessLogicContractTests
|
||||
_workerBusinessLogicContract = new WorkerBusinessLogicContract(_workerStorageContract.Object, new Mock<ILogger>().Object);
|
||||
}
|
||||
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
_workerStorageContract.Reset();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user