public void CategoryController_Index_ReturnsTheResultOfTheCallToSearchAsTheModel() { var categoryPagedList = new CategoryPagedList(new StaticPagedList<Category>(new Category[0], 1, 1, 0), 1); A.CallTo(() => _categoryAdminService.Search("test", 1)).Returns(categoryPagedList); ViewResult index = _categoryController.Index("test", 1); index.Model.Should().Be(categoryPagedList); }
public void CategoryController_Index_ReturnsTheResultOfTheCallToSearchAsTheModel() { var categoryPagedList = new CategoryPagedList(new StaticPagedList <Category>(new Category[0], 1, 1, 0), 1); A.CallTo(() => _categoryAdminService.Search("test", 1)).Returns(categoryPagedList); ViewResult index = _categoryController.Index("test", 1); index.Model.Should().Be(categoryPagedList); }