コード例 #1
0
 public void GoToMainToAddMealItem()
 {
     var navigation = new MainViewModel.Navigation { ShouldAddMealItem = true };
     ShowViewModel<MainViewModel>(navigation);
 }
コード例 #2
0
 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>();
 }
コード例 #3
0
 public void GoToMain()
 {
     var navigation = new MainViewModel.Navigation();
     ShowViewModel<MainViewModel>(navigation);
 }