예제 #1
0
        public void OnScenarioStart_RegistersAsyncExecutorInScenarioContext()
        {
            asyncTestRunner.RegisterAsyncTestExecutor(fakeAsyncTestExecutor);
            var scenarioInfo = new ScenarioInfo("title");

            asyncTestRunner.OnScenarioStart(scenarioInfo);

            Assert.IsNotNull(CurrentScenarioContext.Get <IAsyncTestExecutor>());
        }
예제 #2
0
        public void WhenILogIn()
        {
            var model = CurrentScenarioContext.Get <RegistrationTestModel>(UserConstants.Registration);

            _administrator.Login(model.Email, model.Password);
        }