Beispiel #1
0
        public void GetProduct_WithProductIsNotNull_Success()
        {
            // Arrange
            mockProductRepository.MockGetProducts();

            // Act
            var result = _productController.Get();

            // Assert
            var okResult = Assert.IsType <OkObjectResult>(result);

            mockProductRepository.VerifyGetProducts(Times.Once());
        }