public void OnScenarioStart_RegistersAsyncExecutorInScenarioContext() { asyncTestRunner.RegisterAsyncTestExecutor(fakeAsyncTestExecutor); var scenarioInfo = new ScenarioInfo("title"); asyncTestRunner.OnScenarioStart(scenarioInfo); Assert.IsNotNull(CurrentScenarioContext.Get <IAsyncTestExecutor>()); }
public void WhenILogIn() { var model = CurrentScenarioContext.Get <RegistrationTestModel>(UserConstants.Registration); _administrator.Login(model.Email, model.Password); }