Exemplo n.º 1
0
        public void GivenIHaveAlreadyRegisteredWithFollowingInformation(Table table)
        {
            var model = table.CreateInstance <RegistrationTestModel>("", this.CurrentScenarioContext);

            CurrentScenarioContext.Add(UserConstants.Registration, model);
            _administrator.Register(model);
        }
Exemplo n.º 2
0
        public void OnScenarioStart_RegistersAsyncExecutorInScenarioContext()
        {
            asyncTestRunner.RegisterAsyncTestExecutor(fakeAsyncTestExecutor);
            var scenarioInfo = new ScenarioInfo("title");

            asyncTestRunner.OnScenarioStart(scenarioInfo);

            Assert.IsNotNull(CurrentScenarioContext.Get <IAsyncTestExecutor>());
        }
Exemplo n.º 3
0
 public HomePageSteps(CurrentScenarioContext context)
     : base(context)
 {
     this.context = context;
 }
Exemplo n.º 4
0
 public UserLoginSteps(CurrentScenarioContext context) : base(context)
 {
     this.context = context;
 }
Exemplo n.º 5
0
 public CommonSteps(CurrentScenarioContext context)
 {
     this.context = context;
 }
Exemplo n.º 6
0
        public void WhenILogIn()
        {
            var model = CurrentScenarioContext.Get <RegistrationTestModel>(UserConstants.Registration);

            _administrator.Login(model.Email, model.Password);
        }
Exemplo n.º 7
0
 public TeamSteps(CurrentScenarioContext context) : base(context)
 {
     this.context = context;
 }