public void CustomersLoadTest() { CustomerViewModel vm = new CustomerViewModel(kernel.Get <IServiceFactory>()); vm.Init(); ICommand targetCommand = vm.LoadCommand; Assert.IsTrue(targetCommand.CanExecute(null)); targetCommand.Execute(null); Assert.AreEqual(4, vm.Customers.Count); }
public void Init() { carViewModel.Init(); customerViewModel.Init(); reservationViewModel.Init(); }