Add materials converting from DTOs
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
<ItemGroup>
|
||||
<Folder Include="FunctionalTests\Ndms\SteelSections\" />
|
||||
<Folder Include="FunctionalTests\RCs\Anchorage\" />
|
||||
<Folder Include="UnitTests\ConvertStrategiesTest\" />
|
||||
<Folder Include="UnitTests\WindowTests\Calculations\CalculationProperties\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -60,17 +60,6 @@ namespace StructureHelperTests.UnitTests.UpdateStrategiesTests
|
||||
targetMock.VerifySet(t => t.TensionForSLS = It.IsAny<bool>(), Times.Never);
|
||||
targetMock.VerifySet(t => t.RelativeHumidity = It.IsAny<double>(), Times.Never);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Update_ShouldThrowStructureHelperException_WhenObjectsAreOfDifferentTypes()
|
||||
{
|
||||
// Arrange
|
||||
var targetMock = new Mock<IConcreteLibMaterial>();
|
||||
var sourceMock = new Mock<ConcreteLibMaterial>();
|
||||
|
||||
// Act & Assert
|
||||
Assert.Throws<StructureHelperException>(() => strategy.Update(targetMock.Object, sourceMock.Object));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,17 +27,6 @@ namespace StructureHelperTests.UnitTests.UpdateStrategiesTests
|
||||
mockTargetMaterial.Setup(t => t.SafetyFactors).Returns(targetSafetyFactors);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Update_ShouldThrowException_WhenTargetAndSourceAreDifferentTypes()
|
||||
{
|
||||
// Arrange
|
||||
var mockTarget1 = new ConcreteLibMaterial();
|
||||
var mockTarget2 = new ReinforcementLibMaterial();
|
||||
|
||||
// Act & Assert
|
||||
Assert.Throws<StructureHelperException>(() => updateStrategy.Update(mockTarget1, mockTarget2));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Update_ShouldCopyMaterialEntityAndMaterialLogic()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user