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); }
public void AddDependent(Beneficiary dependent) { dependent.BaseBenefitCost = 500; _dependents.Add(dependent); }