//Female ((age >= 18) && (age <= 30)) public static void female_25_5() { expectedResult = 5f; float actualResult = insuranceService.CalcPremium(25, "female"); Assert.AreEqual(expectedResult, actualResult); }
protected void btn_Click(object sender, EventArgs e) { string a = age.Text; System.Diagnostics.Debug.WriteLine(a); int ageInput = int.Parse(a); float premium = ins.CalcPremium(ageInput, genderInput); prem.Text = "Your premium is: " + premium.ToString(); }
public float premium() { InsuranceService insuranceService = new InsuranceService(); return(insuranceService.CalcPremium(age, gender)); }