public AndPropertyMatcher(IPropertyMatcher first, IPropertyMatcher second) { Ensure.NotNull(first, "first"); Ensure.NotNull(second, "second"); this.first = first; this.second = second; }
public void Setup() { matcherOne = new Mock <IPropertyMatcher>(); matcherTwo = new Mock <IPropertyMatcher>(); var matchers = new List <IPropertyMatcher>() { matcherOne.Object, matcherTwo.Object }; matcher = new PropertyMatcher(matchers); }
public bool IsMatch(Property agencyProperty, Property databaseProperty) { if (agencyProperty == null || databaseProperty == null || agencyProperty.AgencyCode == null) { return(false); } IPropertyMatcher matcher = matcherFactory.GetPropertyMatcher(agencyProperty.AgencyCode); if (matcher == null) { throw new AgencyMatcherNotFoundException(string.Format("No matcher found for Agency: '{0}'", agencyProperty.AgencyCode)); } return(matcher.IsMatch(agencyProperty, databaseProperty)); }
public void SetUp() { _propertyMatcher = Substitute.For<IPropertyMatcher>(); _ruleEngine = Substitute.For<IRuleEngine>(); }
public HomeController() { _propertyMatcher = new PropertyMatcher(); }
public void Setup() { matcher = new MatchLre(); }
public static void ClassInit(TestContext context) { propertyMatcher = new PropertyMatcher(); }