protected bool Equals(Beneficiary other)
 {
     return(Id.Equals(other.Id) && string.Equals(FirstName, other.FirstName) && string.Equals(MiddleName, other.MiddleName) && string.Equals(LastName, other.LastName) && BenefitCost == other.BenefitCost);
 }
示例#2
0
 public void AddDependent(Beneficiary dependent)
 {
     dependent.BaseBenefitCost = 500;
     _dependents.Add(dependent);
 }