コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
        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);
        }
コード例 #8
0
        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);
        }