public void RemoveItemViewModel_BarcodeAction_CorrectBarcode() { Item item = new Item(); item.ItemId = 8; _fakeBackendConnection.CheckBarcode("705632085943").Returns(item); _camConnection.SimulateEventFromVideoCaptureDevice(myBitmap); _fakeBackendConnection.Received(1).GetListOfInventoryItems(8); }
public void ShoppingListViewModel_ClearListCommand_CalledBackendServer() { _uut.ClearListCommand.Execute(_obj); //See if DeleteShoppingList() is called _backendConnection.Received(1).DeleteShoppingList(); }
public void AddItemViewModel_BarcodeAction_CheckBarcode() { _camConnection.SimulateEventFromVideoCaptureDevice(myBitmap); _fakeBackendConnection.Received(1).CheckBarcode("705632085943"); }
public void ShoppingListViewModel_UpdateShoppingListCommand_CallsGetInventoryItemListByType() { _sut.UpdateShoppingListCommand.Execute(_obj); _fakeBackendConnection.Received(2).GetInventoryItemListByType(3); }