Beispiel #1
0
 void GivenIHaveLoggedInAsAMasterAdmin()
 {
     _homePage = Host
         .Instance
         .NavigateToInitialPage<HomePage>()
         .Login(ObjectMother.UserJohnSmith.ViewModel);
 }
        public void WhenIInputValidDetailsForMySchool()
        {
            var salt = Guid.NewGuid();
            _schoolModel = new SchoolModel
            {
                NameOfInstitution = "Name " + salt, 
                StateOrganizationId = "State " + salt, 
                WebSite = "website " + salt
            };

            _homePage = _schoolPage.Save(_schoolModel);
            _schoolPage = _homePage.TopMenu.GoToSchoolPage();
            _updatedModel = _schoolPage.Read.ModelFromPage();
        }
 public void AdminHasLoggedIn()
 {
     _homePage = Host.Instance
    .NavigateToInitialPage<HomePage>()
    .Login(ObjectMother.UserJohnSmith.ViewModel); 
 }
 private void MasterAdminHasLoggedIn()
 {
     _homePage = Host.Instance
         .NavigateToInitialPage<HomePage>()
         .Login(ObjectMother.UserMasterAdmin.ViewModel);
 }