public PropertyMatcher <TProperty> With <TSubProperty>(Expression <Func <TProperty, TSubProperty> > property, Action <PropertyMatcher <TSubProperty> > rule) { var matcher = new PropertyMatcher <TSubProperty>(propertyPath + "." + ExpressionToPropertyPath.Convert(property), register); rule(matcher); return(this); }
public SpecifyResponseMachers <TResponse> WithResponseMatchingRule <TProperty>(Expression <Func <TResponse, TProperty> > property, Action <PropertyMatcher <TProperty> > rule) { var matcher = new PropertyMatcher <TProperty>(ExpressionToPropertyPath.Convert(property), interaction.responseMatchers.Add); rule(matcher); return(this); }