Example #1
0
        public static AndConstraint <OperationSegment> ShouldHaveSegmentOfParameterAliasNode(this OperationSegment segment, string name, string alias, IEdmTypeReference typeReference = null)
        {
            OperationSegmentParameter parameter = segment.Parameters.SingleOrDefault(p => p.Name == name);

            parameter.Should().NotBeNull();
            parameter.ShouldHaveParameterAliasNode(name, alias, typeReference);
            return(new AndConstraint <OperationSegment>(segment));
        }
Example #2
0
        public static AndConstraint <OperationImportSegment> ShouldHaveConstantParameter <TValue>(this OperationImportSegment segment, string name, TValue value)
        {
            OperationSegmentParameter parameter = segment.Parameters.SingleOrDefault(p => p.Name == name);

            parameter.Should().NotBeNull();
            parameter.ShouldBeConstantParameterWithValueType(name, value);
            return(new AndConstraint <OperationImportSegment>(segment));
        }