public void GetMonthlyInstallmentShouldWorkCorrectly() { //Arrange var parameters = new CalculateMonthlyInstallmentParameters { MaturityInMonths = 36, InterestRateAsPercentage = 1.5, LoanAmount = 48000, ProductType = ProductType.PersonalLoan }; //Act var sut = MonthlyInstallment.Get(parameters); //Assert sut.MonthlyInstallment.Should().NotBe(0); }
public void WhenMaturityIsZero_GetMonthlyInstallmentShouldReturnEmptyReturnDto() { //Arrange var parameters = new CalculateMonthlyInstallmentParameters { MaturityInMonths = 0, InterestRateAsPercentage = 1.5, LoanAmount = 48000, ProductType = ProductType.PersonalLoan }; //Act var sut = MonthlyInstallment.Get(parameters); //Assert sut.MonthlyInstallment.Should().Be(0); }