public bool Equals(IRelationshipResolver other) { return(MinXPosition == other.MinXPosition && MaxXPosition == other.MaxXPosition && MinYPosition == other.MinYPosition && MaxYPosition == other.MaxYPosition); }
public ModelProcessor(IPersonLookupCache personLookupCache, IRelationshipResolver relationshipResolver, string referenceResourceName = "FamilyTree.ReferenceModel.arthur-clan.txt", Type assemblyWithTypeForReferenceResource = null) { _personLookupCache = personLookupCache; _relationshipResolver = relationshipResolver; InitializeModelFromResource(assemblyWithTypeForReferenceResource, referenceResourceName); }
private List <Person> WhenTheBrotherInLawsAreQueried() { _relationshipResolver = new RelationshipResolver(); return(_relationshipResolver.GetRelations(_female, Relationship.BrotherInLaw).ToList()); }
private List <Person> WhenTheMaternalUnclesAreQueried() { _relationshipResolver = new RelationshipResolver(); return(_relationshipResolver.GetRelations(_person, Relationship.MaternalUncle).ToList()); }
private List <Person> WhenTheSiblingsAreQueried() { _relationshipResolver = new RelationshipResolver(); return(_relationshipResolver.GetRelations(_child, Relationship.Siblings).ToList()); }
private List <Person> WhenTheSonsAreQueried() { _relationshipResolver = new RelationshipResolver(); return(_relationshipResolver.GetRelations(_parent, Relationship.Son).ToList()); }
private List <Person> WhenThePaternalAuntsAreQueried() { _relationshipResolver = new RelationshipResolver(); return(_relationshipResolver.GetRelations(_person, Relationship.PaternalAunt).ToList()); }
private List <Person> WhenTheSistersInLawAreQueried() { _relationshipResolver = new RelationshipResolver(); return(_relationshipResolver.GetRelations(_person, Relationship.SisterInLaw).ToList()); }