Ejemplo n.º 1
0
        public OperandBase HttpHeader(string headerName)
        {
            var operand = new HttpHeaderOperand(headerName);

            LeftOperands.Add(operand);

            return(operand);
        }
Ejemplo n.º 2
0
        public OperandBase Func(Func <object, object> func)
        {
            var operand = new FuncOperand(func);

            LeftOperands.Add(operand);

            return(operand);
        }
        /// <summary>
        /// Map an atrribute write on XML documentation of tag "Exception".
        /// </summary>
        /// <param name="attributeName">The attribute name</param>
        public OperandBase Attribute(string attributeName)
        {
            var operand = new ErrorResponseAttributeOperand(attributeName);

            LeftOperands.Add(operand);

            return(operand);
        }
Ejemplo n.º 4
0
        public OperandBase Authenticated()
        {
            var operand = new AuthenticatedOperand();

            LeftOperands.Add(operand);

            return(operand);
        }
Ejemplo n.º 5
0
        public void IsTrue(Func <object, bool> func)
        {
            var operand = new FuncOperand((o) =>
            {
                return(func(o));
            });

            operand.Operator = new EqualsOperator(operand, new FixedValueOperand(true));

            LeftOperands.Add(operand);
        }