public void Initialize() { _viewModel = new VendingMachineViewModel( new Catalog() .AddProduct("Doritos") .AddProduct("Cheezits"), new Order(), new VendingMachineNavigationModel()); }
private void HomeView_Loaded(object sender, RoutedEventArgs e) { var viewModel = new VendingMachineViewModel( new Catalog() .AddProduct("Doritos") .AddProduct("Cheezits"), new Order(), new VendingMachineNavigationModel()); DataContext = ForView.Wrap(viewModel); }