コード例 #1
0
        [Fact] // AddStorageSort_CallsAddEntityOnce
        public void Item_TryAddItem()
        {
            var item           = ProductUsedForTesting();
            var MockRequest    = new Mock <IApiRequestSend <Warehouse> >();
            var itemController = new WarehouseController(MockRequest.Object);

            itemController.AddWarehouseProduct(item);
            MockRequest.Verify(m => m.AddEntity(item), Times.Once);
        }