Exemple #1
0
        public async Task GetInventoryByProductTestAsync()
        {
            // Arrange
            var logger            = LoggerMocker.GetLogger <ProductionController>();
            var productionService = ServiceMocker.GetProductionService();
            var id = 1;

            using (var controller = new ProductionController(logger, productionService))
            {
                // Act
                var response = await controller.GetInventoryByProduct(id) as ObjectResult;

                var value = response.Value as IListResponse <ProductInventory>;

                // Assert
                Assert.False(value.DidError);
            }
        }