public void GivenIHaveAlreadyRegisteredWithFollowingInformation(Table table) { var model = table.CreateInstance <RegistrationTestModel>("", this.CurrentScenarioContext); CurrentScenarioContext.Add(UserConstants.Registration, model); _administrator.Register(model); }
public void OnScenarioStart_RegistersAsyncExecutorInScenarioContext() { asyncTestRunner.RegisterAsyncTestExecutor(fakeAsyncTestExecutor); var scenarioInfo = new ScenarioInfo("title"); asyncTestRunner.OnScenarioStart(scenarioInfo); Assert.IsNotNull(CurrentScenarioContext.Get <IAsyncTestExecutor>()); }
public HomePageSteps(CurrentScenarioContext context) : base(context) { this.context = context; }
public UserLoginSteps(CurrentScenarioContext context) : base(context) { this.context = context; }
public CommonSteps(CurrentScenarioContext context) { this.context = context; }
public void WhenILogIn() { var model = CurrentScenarioContext.Get <RegistrationTestModel>(UserConstants.Registration); _administrator.Login(model.Email, model.Password); }
public TeamSteps(CurrentScenarioContext context) : base(context) { this.context = context; }