Example #1
0
        public void CategoryContent_Should_CallGetProductsForGivenCategoryWithFilterOnlyOnce(int id, string searchTerm)
        {
            //Arrange
            //SetUp

            //Act
            var result = controller.CategoryContent(id, searchTerm);

            //Assert
            contextService.Verify(v => v.GetProductsForGivenCategoryWithFilter(It.IsAny <int>(), It.IsAny <string>()), Times.Once);
        }