public void GoToMainToAddMealItem() { var navigation = new MainViewModel.Navigation { ShouldAddMealItem = true }; ShowViewModel<MainViewModel>(navigation); }
public void TestInitialize() { factories = new FactoriesImpl(); factories.StorageCreator = new StorageCreatorStub(); productListing = new ProductListingViewModel(factories, new BackgroundWorkerSyncFactory()); mealItemEditing = new MealItemEditingViewModel(); sut = CreateSut(factories, productListing: productListing, mealItemEditing: mealItemEditing); navigation = new MainViewModel.Navigation(); sut.Init(navigation); var stateProvider = Substitute.For<StateProvider>(); stateProvider.State.Returns(new Dictionary<string, object>()); sut.StateProvider = stateProvider; navigator = Substitute.For<Navigator>(); }
public void GoToMain() { var navigation = new MainViewModel.Navigation(); ShowViewModel<MainViewModel>(navigation); }