예제 #1
0
 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);
 }