public void WhenRunning(string statement) { var session = TckHooks.CreateSession(); var result = session.Run(statement); ScenarioContext.Current.Set(result); }
public void WhenTheDriverAsksTheServerToEchoThisValueBack() { var expected = ScenarioContext.Current.Get <object>(KeyExpected); var session = TckHooks.CreateSession(); _statementResult = session.Run("Return {input}", new Dictionary <string, object> { { "input", expected } }); }
public void WhenRunningParameterized(string statement, Table table) { table.RowCount.Should().Be(1); var dict = table.Rows[0].Keys.ToDictionary <string, string, object>(key => key, key => _parser.Parse(table.Rows[0][key])); var session = TckHooks.CreateSession(); var result = session.Run(statement, dict); ScenarioContext.Current.Set(result); }
public void WhenTheDriverAsksTheServerToEchoThisMapBack() { var map = ScenarioContext.Current.Get <IDictionary <string, object> >(Keymap); ScenarioContext.Current.Set((object)map, KeyExpected); var session = TckHooks.CreateSession(); _statementResult = session.Run("Return {input}", new Dictionary <string, object> { { "input", map } }); }
public void WhenTheDriverAsksTheServerToEchoThisListBack() { var list = ScenarioContext.Current.Get <IList <object> >(KeyList); ScenarioContext.Current.Set((object)list, KeyExpected); var session = TckHooks.CreateSession(); _statementResult = session.Run("Return {input}", new Dictionary <string, object> { { "input", list } }); }