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 ScoreCreatePage(new GenericViewModel <ScoreModel>(new ScoreModel())); }