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); }
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); }
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); } }
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); } }