예제 #1
0
        public async Task TestGetProductSubcategoriesAsync()
        {
            using (var repository = RepositoryMocker.GetProductionRepository())
            {
                // Arrange
                var controller = new ProductionController(repository);

                // Act
                var response = await controller.GetProductSubcategories() as ObjectResult;

                // Assert
                var value = response.Value as IListResponse <ProductSubcategoryViewModel>;

                Assert.False(value.DidError);
            }
        }