// should be straight to the db, not through the UI public void Given_that_I_am_a_logged_in_user() { _homePage = Host.Instance.NavigateToInitialPage<HomeController, HomePage>(x => x.Index()) .Menu .GoToAdminForAnonymousUser() .GoToRegisterPage() .CreateValidUser(ObjectMother.CreateRegisterModel()); }
// should be straight to the db, not through the UI public void Given_that_I_am_a_logged_in_user() { _homePage = new HomePage() .Menu .GoToAdminForAnonymousUser() .GoToRegisterPage() .CreateValidUser(ObjectMother.CreateRegisterModel()); }