private static decimal getGrossPremium(decimal riskRate, int sumAssured) { GrossPremiumCalculator grossPremiumCalculator = new GrossPremiumCalculator(); IGrossPremiumCalculator premiumCalculator = grossPremiumCalculator; return(premiumCalculator.getGrossPremiuim(riskRate, sumAssured)); }
public void Setup() { GrossPremiumCalculator grossPremiumCalculator = new GrossPremiumCalculator(); grossPremium = grossPremiumCalculator; }