public SalaryInfo(double totalSalary, double quotedSalary, List<PayPercent> insurancesPayPercent, RevenuePolicy revenuePloicy) { this.TotalSalary = totalSalary; this.QuotedSalary = quotedSalary; this.InsurancesPayPercent = insurancesPayPercent; this.RevenuePolicy = revenuePloicy; this.Insurances = this.InsurancesPayPercent.Select(row => new Insurance(row)).ToList(); }
public SalaryInfo(double totalSalary, double quotedSalary, List <PayPercent> insurancesPayPercent, RevenuePolicy revenuePloicy) { this.TotalSalary = totalSalary; this.QuotedSalary = quotedSalary; this.InsurancesPayPercent = insurancesPayPercent; this.RevenuePolicy = revenuePloicy; this.Insurances = this.InsurancesPayPercent.Select(row => new Insurance(row)).ToList(); }
private void LoadRevenuePolicy() { string content = File.ReadAllText(Constants.RevenuePolicyFileName, Encoding.UTF8); this.RevenuePolicy = SerializeHelper.XmlDeserialize<RevenuePolicy>(content); }