Esempio n. 1
0
        public void ManagementFee_Verification_CorrectValue()
        {
            var policyAMaturityCalculatorSpy = new PolicyAMaturityCalculatorSpy();

            var managementFee = policyAMaturityCalculatorSpy.GetSpyManagementFee;

            Assert.AreEqual(0.03, managementFee);
        }
Esempio n. 2
0
        public void GetDiscretionaryBonus_PolicyTakenBefore_1_1_1990_VerifyDiscretionaryBonus_Thousand()
        {
            var startDate    = DateTime.ParseExact("5/12/1986", "m/d/yyyy", CultureInfo.InvariantCulture);
            var policyDetail = new PolicyDetail()
            {
                PolicyNumber       = "A100001",
                PolicyStartDate    = startDate,
                DiscretionaryBonus = 1000
            };
            var policyAMaturityCalculatorSpy = new PolicyAMaturityCalculatorSpy();

            var discretionaryBonus = policyAMaturityCalculatorSpy.GetSpyDiscretionaryBonus(policyDetail);

            Assert.AreEqual(1000, discretionaryBonus);
        }