public App() { InitializeComponent(); productsDataStore = new ProductsDataStore(); unitsDataStore = new UnitsDataStore(); MainPage = new NavigationPage(new ProductsPage()); }
public void Setup() { IDataStore <Product> productsDataStore = new ProductsDataStore(); productsViewModel = new ProductsViewModel(productsDataStore); unitsDataStore = new UnitsDataStore(); unitsViewModel = new UnitsViewModel(UnitBase.Weight, unitsDataStore); }