public void IndexAction_Returns_View() { //Act var controller = new CharityController(_charityRepository, _notificationService); var result = controller.Index(); //Assert result.AssertViewRendered(); }