public void Setup() { // Initilize Xamarin Forms MockForms.Init(); //This is your App.xaml and App.xaml.cs, which can have resources, etc. app = new App(); Application.Current = app; page = new SchoolPage(); }
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 AndGivenIAmOnTheSchoolEditPage() { _schoolPage = _homePage.TopMenu.GoToSchoolPage(); }