Exemplo n.º 1
0
 public bool IsMarriedTo(IFamilyMember member)
 {
     return(Partnerships.Exists(x => x.OtherPartner(this) == member && x.IsDivorced == false));
 }
Exemplo n.º 2
0
 public bool IsDivorcedFrom(IFamilyMember member)
 {
     return(Partnerships.Exists(x => x.OtherPartner(this) == member && x.IsDivorced == true));
 }
Exemplo n.º 3
0
 public bool HasChildren()
 {
     return(Partnerships.Exists(x => x.HasChildren()) || NonPartnership.Children.Count > 0);
 }