Exemplo n.º 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);
        }
Exemplo n.º 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);
            }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
            public SpecifyRequestMachersOrResponse <TRequest> WithRequestMatchingRule <TProperty>(Expression <Func <TRequest, TProperty> > property, Action <PropertyMatcher <TProperty> > rule)
            {
                var matcher = new PropertyMatcher <TProperty>(ExpressionToPropertyPath.Convert(property), interaction.requestMatchers.Add);

                rule(matcher);
                return(this);
            }