public void Title_Value_Check() { var inputDto = new InputDTO() { Title = "Mr" }; var defaultCalculator = new DefaultPremium(); var result = defaultCalculator.PremiumCalculationAmount(inputDto); Assert.AreEqual(inputDto.Title, result.Title); }
public void OtherMonth_Amount_Negative_calculation() { var inputDto = new InputDTO() { AnnualPemium = 120 }; var defaultCalculator = new DefaultPremium(); var result = defaultCalculator.PremiumCalculationAmount(inputDto); Assert.AreNotEqual(10, result.OtherMonthlyPaymentsAmount); }
public void InitialMonth_Amount_Empty_calculation() { var inputDto = new InputDTO() { AnnualPemium = 0 }; var defaultCalculator = new DefaultPremium(); var result = defaultCalculator.PremiumCalculationAmount(inputDto); Assert.AreNotEqual(10, result.InitialMonthlyPaymentAmount); }
public void PayOutAmount_Amount_Empty_calculation() { var inputDto = new InputDTO() { PayOutAmount = 0 }; var defaultCalculator = new DefaultPremium(); var result = defaultCalculator.PremiumCalculationAmount(inputDto); Assert.AreNotEqual(10, result.PayOutAmount); }
public void Surname_Amount_Empty_calculation() { var inputDto = new InputDTO() { Surname = "Mark" }; var defaultCalculator = new DefaultPremium(); var result = defaultCalculator.PremiumCalculationAmount(inputDto); Assert.AreEqual(inputDto.Surname, result.Surname); }
public void Initial_Amount_Positive_calculation() { var inputDto = new InputDTO() { AnnualPemium = 120 }; var defaultCalculator = new DefaultPremium(); var result = defaultCalculator.PremiumCalculationAmount(inputDto); Assert.AreEqual(10.5, result.InitialMonthlyPaymentAmount); }
public void ProductName_Value_Check() { var inputDto = new InputDTO() { ProductName = "Nestlay" }; var defaultCalculator = new DefaultPremium(); var result = defaultCalculator.PremiumCalculationAmount(inputDto); Assert.AreEqual(inputDto.ProductName, result.ProductName); }
public void FirstName_Value_Check() { var inputDto = new InputDTO() { FirstName = "Shalin" }; var defaultCalculator = new DefaultPremium(); var result = defaultCalculator.PremiumCalculationAmount(inputDto); Assert.AreEqual(inputDto.FirstName, result.FirstName); }