public App() { InitializeComponent(); IocUtil.BuildIocContainer(); var countriesPage = IocUtil.Resolve <CountriesListPage>(); var detailPage = new NavigationPage(IocUtil.Resolve <CountryDetailPage>()); if (Device.Idiom == TargetIdiom.Tablet || Device.Idiom == TargetIdiom.Desktop) { MainPage = new MasterDetailPage() { Master = countriesPage, Detail = detailPage, }; } else { MainPage = new NavigationPage(countriesPage); } }
public void OneTimeSetUp() { Xamarin.Forms.Mocks.MockForms.Init(); IocUtil.BuildIocContainer(); }