public GivenGrammar Given(string description, Action <SpecificationContext> implementation) { var given = new GivenGrammar(Context, description, implementation, GivenGrammarPrefix.Given); given.Evaluate(); return(given); }
public static GivenGrammar And(this GivenGrammar givenGrammar, string description, Action <SpecificationContext> implementation) { var andGivenGrammar = new GivenGrammar(givenGrammar.Context, description, implementation, GivenGrammarPrefix.And); andGivenGrammar.Evaluate(); return(andGivenGrammar); }