コード例 #1
0
        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();
 }
コード例 #3
0
        public void AddItemViewModel_BarcodeAction_CheckBarcode()
        {
            _camConnection.SimulateEventFromVideoCaptureDevice(myBitmap);

            _fakeBackendConnection.Received(1).CheckBarcode("705632085943");
        }
コード例 #4
0
        public void ShoppingListViewModel_UpdateShoppingListCommand_CallsGetInventoryItemListByType()
        {
            _sut.UpdateShoppingListCommand.Execute(_obj);

            _fakeBackendConnection.Received(2).GetInventoryItemListByType(3);
        }