Exemplo n.º 1
0
 public IBuilder <T> WithUri(UriConstraint.QueryAndPath constriant)
 {
     this.uri = constriant;
     return(this);
 }
Exemplo n.º 2
0
 public static MessageConstraint HttpRequest(UriConstraint.QueryAndPath uri = null, IConstraint method = null, ContentConstraint content = null)
 {
     return(new MessageConstraint(uri, method, content));
 }
Exemplo n.º 3
0
 public IBuilder <T> WithUri(string pathEnding, string query = null)
 {
     this.uri = UriConstraint.Uri(Does.EndWith(pathEnding), query == null ? null : Is.EqualTo(query));
     return(this);
 }
Exemplo n.º 4
0
        public static MessageConstraint HttpRequest(this ConstraintExpression expression, UriConstraint.QueryAndPath uri = null, IConstraint method = null, ContentConstraint content = null)
        {
            var constraint = new MessageConstraint(uri, method, content);

            expression.Append(constraint);
            return(constraint);
        }