private static bool CheckAgencyPropertyExists(Property agencyProperty, Data.Models.Property databasePropertyDto) { IPropertyMatcherFactory factory = new PropertyMatcherFactory(); IPropertyMatcher propertyMatcher = factory.GetPropertyMatcher(agencyProperty.AgencyCode); return propertyMatcher.IsMatch(agencyProperty, Mapper.Map<Property>(databasePropertyDto)); }
public void AgencyCode_OBTRE_Should_Return_NameAddressMatcher_Instance() { PropertyMatcherFactory factory = new PropertyMatcherFactory(); IPropertyMatcher matcher = factory.GetPropertyMatcher("OBTRE"); Assert.IsInstanceOf<NameAddressMatcher>(matcher); }