fix tests with requirement, replace SetUp with TearDown

This commit is contained in:
Ivan Gutorov 2025-02-17 15:36:22 +04:00
parent 18355dcb6c
commit aa6c5a8721
5 changed files with 10 additions and 10 deletions

View File

@ -21,8 +21,8 @@ internal class ComponentBusinessLogicContractTests
_componentBusinessLogicContract = new ComponentBusinessLogicContract(_componentStorageContract.Object, new Mock<ILogger>().Object); _componentBusinessLogicContract = new ComponentBusinessLogicContract(_componentStorageContract.Object, new Mock<ILogger>().Object);
} }
[SetUp] [TearDown]
public void SetUp() public void TearDown()
{ {
_componentStorageContract.Reset(); _componentStorageContract.Reset();
} }

View File

@ -20,8 +20,8 @@ internal class EmployeeBusinessLogicContractTest
_employeeBusinessLogicContract = new EmployeeBusinessLogicContract(_employeeStorageContract.Object, new Mock<ILogger>().Object); _employeeBusinessLogicContract = new EmployeeBusinessLogicContract(_employeeStorageContract.Object, new Mock<ILogger>().Object);
} }
[SetUp] [TearDown]
public void SetUp() public void TearDown()
{ {
_employeeStorageContract.Reset(); _employeeStorageContract.Reset();
} }

View File

@ -19,8 +19,8 @@ internal class InstallationBusinessLogicContractTest
_installationBusinessLogicContract = new InstallationBusinessLogicContract(_installationStorageContract.Object, new Mock<ILogger>().Object); _installationBusinessLogicContract = new InstallationBusinessLogicContract(_installationStorageContract.Object, new Mock<ILogger>().Object);
} }
[SetUp] [TearDown]
public void SetUp() public void TearDown()
{ {
_installationStorageContract.Reset(); _installationStorageContract.Reset();
} }

View File

@ -21,8 +21,8 @@ internal class PostBusinessLogicContractTest
_postBusinessLogicContract = new PostBusinessLogicContract(_postStorageContract.Object, new Mock<ILogger>().Object); _postBusinessLogicContract = new PostBusinessLogicContract(_postStorageContract.Object, new Mock<ILogger>().Object);
} }
[SetUp] [TearDown]
public void SetUp() public void TearDown()
{ {
_postStorageContract.Reset(); _postStorageContract.Reset();
} }

View File

@ -29,8 +29,8 @@ internal class SalaryBusinessLogicContractTest
_employeeStorageContract.Object, new Mock<ILogger>().Object); _employeeStorageContract.Object, new Mock<ILogger>().Object);
} }
[SetUp] [TearDown]
public void SetUp() public void TearDown()
{ {
_salaryStorageContract.Reset(); _salaryStorageContract.Reset();
_installationStorageContract.Reset(); _installationStorageContract.Reset();