Example #1
0
        public void Title_Value_Check()
        {
            var inputDto = new InputDTO()
            {
                Title = "Mr"
            };
            var defaultCalculator = new EnhancedCover(productTypeInfo.Object);
            var result            = defaultCalculator.PremiumCalculationAmount(inputDto);

            Assert.AreEqual(inputDto.Title, result.Title);
        }
Example #2
0
        public void InitialMonth_Amount_Empty_calculation()
        {
            var inputDto = new InputDTO()
            {
                AnnualPemium = 0
            };
            var defaultCalculator = new EnhancedCover(productTypeInfo.Object);
            var result            = defaultCalculator.PremiumCalculationAmount(inputDto);

            Assert.AreNotEqual(10, result.InitialMonthlyPaymentAmount);
        }
Example #3
0
        public void OtherMonth_Amount_Negative_calculation()
        {
            var inputDto = new InputDTO()
            {
                AnnualPemium = 120
            };
            var defaultCalculator = new EnhancedCover(productTypeInfo.Object);
            var result            = defaultCalculator.PremiumCalculationAmount(inputDto);

            Assert.AreNotEqual(10, result.OtherMonthlyPaymentsAmount);
        }
Example #4
0
        public void PayOutAmount_Amount_Empty_calculation()
        {
            var inputDto = new InputDTO()
            {
                PayOutAmount = 0
            };
            var defaultCalculator = new EnhancedCover(productTypeInfo.Object);
            var result            = defaultCalculator.PremiumCalculationAmount(inputDto);

            Assert.AreNotEqual(10, result.PayOutAmount);
        }
Example #5
0
        public void Surname_Amount_Empty_calculation()
        {
            var inputDto = new InputDTO()
            {
                Surname = "Mark"
            };
            var defaultCalculator = new EnhancedCover(productTypeInfo.Object);
            var result            = defaultCalculator.PremiumCalculationAmount(inputDto);

            Assert.AreEqual(inputDto.Surname, result.Surname);
        }
Example #6
0
        public void ProductName_Value_Check()
        {
            var inputDto = new InputDTO()
            {
                ProductName = "Nestlay"
            };
            var defaultCalculator = new EnhancedCover(productTypeInfo.Object);
            var result            = defaultCalculator.PremiumCalculationAmount(inputDto);

            Assert.AreEqual(inputDto.ProductName, result.ProductName);
        }