public void Index() { //Arrange typeServiceMock.Setup(x => x.GetAll()).Returns(items); //Act var result = ((controllerWEB.Index() as ViewResult).Model) as List <Type>; //Assert Assert.IsNotNull(result); Assert.AreEqual(items, result); }
public void Index() { //Arrange typeServiceMock.Setup(x => x.GetAll()).Returns(items); //Act var result = ((controllerWEB.Index() as ViewResult).Model) as List <Type>; //Assert Assert.IsNotNull(result); Assert.AreEqual(items, result); }