public void PolicyBPayoutWithDescretionaryBonusTest() { String myline = "B100003,1/01/1995,12000,Y,2000,41"; PolicyData NewPolicyData = new PolicyData(myline); Policy policy = new PolicyB(NewPolicyData); Assert.Equal(18894m, policy.GetMaturityPayout()); }
public void PolicyBWithDescretionaryBonusTest() { String myline = "B100003,1/01/1995,12000,Y,2000,41"; PolicyData NewPolicyData = new PolicyData(myline); Policy policy = new PolicyB(NewPolicyData); Assert.Equal(2000m, policy.GetBonusValue()); }
public void PolicyBWitoutDescretionaryBonusTest() { String myline = "B100003,1/01/1970,18000,N,3000,43"; PolicyData NewPolicyData = new PolicyData(myline); Policy policy = new PolicyB(NewPolicyData); Assert.Equal(0, policy.GetBonusValue()); }
public void PolicyBWithDescretionaryNetPremiumTest() { String myline = "B100003,1/01/1995,12000,Y,2000,41"; PolicyData NewPolicyData = new PolicyData(myline); Policy policy = new PolicyB(NewPolicyData); Assert.Equal(11400m, policy.GetNetPremium()); }
public void PolicyBWithDescretionaryUpliftOnly() { String myline = "B100003,1/01/1970,18000,Y,2000,41"; PolicyData NewPolicyData = new PolicyData(myline); Policy policy = new PolicyB(NewPolicyData); Assert.Equal((decimal)1.41, (decimal)policy.GetPremiumUplift()); }