Exemple #1
0
        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);
        }
Exemple #2
0
            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);
            }