Exemplo n.º 1
0
        public void Item_TryModifyItem()
        {
            var item           = ProductUsedForTesting();
            var MockRequest    = new Mock <IApiRequestSend <Warehouse> >();
            var itemController = new WarehouseController(MockRequest.Object);

            itemController.EditWarehouseProduct(item.Id, item);
            MockRequest.Verify(m => m.ModifyEntity(item.Id, item), Times.Once);
        }