public void AutosLoadTest()
 {
     TestEnvironmentHelper.InitializeTestData();
     AutoViewModel viewmodel = new AutoViewModel();
     Assert.IsTrue(viewmodel.LoadCommand.CanExecute(null));
     Assert.AreEqual(3, viewmodel.Autos.Count);
 }
 public void Test_AutosLoad()
 {
     AutoViewModel vm = new AutoViewModel(kernel.Get<IServiceFactory>());
     vm.Init();
     vm.LoadCommand.Execute(null);
     Assert.AreEqual(3, vm.Autos.Count);
 }
        public void Test_AutosLoad()
        {
            AutoViewModel vm = new AutoViewModel(kernel.Get<IServiceFactory>());
            vm.Init();

            Assert.Inconclusive("Test not implemented.");
        }
        public void Test_AutosLoad()
        {
            AutoViewModel vm = new AutoViewModel(kernel.Get<IServiceFactory>());
            vm.Init();

            Assert.IsTrue(vm.Autos.Count == 3);
        }
 public void AutosLoadTest()
 {
     var model = new AutoViewModel();
     var loadCommand = model.LoadCommand;
     Assert.IsTrue(loadCommand.CanExecute(null));
     loadCommand.Execute(null);
     Assert.AreEqual(3,model.Autos.Count);
 }
Exemple #6
0
 public void AutosLoadTest()
 {
     AutoViewModel autoView = new AutoViewModel();
     //Assert.IsTrue(autoView.LoadCommand.CanExecute(null));
     //int anzahlAutos = autoView.Autos.Count;
     //Assert.IsTrue(anzahlAutos == 0);
     //autoView.LoadCommand.Execute(null);
     Assert.IsFalse(0 == autoView.Autos.Count);
 }
        public void Test_AutosLoad()
        {
            AutoViewModel vm = new AutoViewModel(kernel.Get<IServiceFactory>());
            vm.Init();

            foreach (AutoDto auto in vm.Autos)
            {
                Assert.IsNotNull(auto);
                //Assert.IsInstanceOfType(auto, typeof(AutoDto));
            }
        }
 public void AutosLoadTest()
 {
     var v = new AutoViewModel();
     Assert.AreEqual(AutoViewModel.Autos.Count, 3);
 }
 public AutoView()
 {
     InitializeComponent();
     DataContext = new AutoViewModel();
 }
 public void Test_AutosLoad()
 {
     AutoViewModel vm = new AutoViewModel(kernel.Get<IServiceFactory>());
     vm.Init();
     Assert.IsNotNull(vm.Autos);
 }