Example #1
0
 public void AutoCreateItems(MainViewModelData.ItemAndOrderData data)
 {
     vm.ItemList   = data.ItemList;
     vm.OrderItems = data.OrderItemList;
     vm.AutoCreateItems();
     Assert.AreEqual(data.ItemListCount, vm.ItemList.Count, data.Title);
 }
Example #2
0
 public void AutoCreateItems(MainViewModelData.ItemAndOrderData data)
 {
     vm.ItemList   = new System.Collections.ObjectModel.ObservableCollection <Item>(data.ItemList ?? new List <Item>());
     vm.OrderItems = new System.Collections.ObjectModel.ObservableCollection <OrderItem>(data.OrderItemList ?? new List <OrderItem>());
     vm.AutoCreateItems();
     Assert.AreEqual(data.ItemListCount, vm.ItemList.Count, data.Title);
 }
Example #3
0
 public void DeletedItemsFromItemList(MainViewModelData.ItemAndOrderData data)
 {
     vm.ItemList = new List <Item>(data.ItemList ?? new List <Item>());
     vm.DeletedItemsFromItemList(data.ItemList);
     if (vm.ItemList != null)
     {
         Assert.AreEqual(vm.ItemList.Count, 0, data.Title);
     }
 }
Example #4
0
 public void DeletedItemsFromItemList(MainViewModelData.ItemAndOrderData data)
 {
     vm.ItemList = new System.Collections.ObjectModel.ObservableCollection <Item>(new List <Item>(data.ItemList ?? new List <Item>()));
     vm.DeletedItemsFromItemList(data.ItemList);
     if (vm.ItemList != null)
     {
         Assert.AreEqual(vm.ItemList.Count, 0, data.Title);
     }
 }