public PropertyMatcher <TProperty> WithArray <TItemProperty>(Expression <Func <TProperty, IEnumerable <TItemProperty> > > property, Action <ArrayMatcher <TItemProperty> > rules) { var matcher = new ArrayMatcher <TItemProperty>(propertyPath + "." + ExpressionToPropertyPath.Convert(property), register); rules(matcher); return(this); }
public SpecifyResponseMachers <TResponse> WithResponseArrayMatchingRule <TProperty>(Expression <Func <TResponse, IEnumerable <TProperty> > > property, Action <ArrayMatcher <TProperty> > rules) { var matcher = new ArrayMatcher <TProperty>(ExpressionToPropertyPath.Convert(property), interaction.responseMatchers.Add); rules(matcher); return(this); }