Example #1
0
        private static decimal getGrossPremium(decimal riskRate, int sumAssured)
        {
            GrossPremiumCalculator  grossPremiumCalculator = new GrossPremiumCalculator();
            IGrossPremiumCalculator premiumCalculator      = grossPremiumCalculator;

            return(premiumCalculator.getGrossPremiuim(riskRate, sumAssured));
        }
Example #2
0
        public void Setup()
        {
            GrossPremiumCalculator grossPremiumCalculator = new GrossPremiumCalculator();

            grossPremium = grossPremiumCalculator;
        }