public void Get_ViewResult_Join_Test() { //Arrange MemberListController controller = new MemberListController(_userManager, _signInManager, _db); //Act var result = controller.Entry(); //Assert Assert.IsType <ViewResult>(result); }
public void Get_ModelList_List_Test() { //Arrange MemberListController controller = new MemberListController(_userManager, _signInManager, _db); IActionResult actionResult = controller.Entry(); ViewResult listView = controller.Entry() as ViewResult; //Act var result = listView.ViewData.Model; //Assert Assert.IsType <List <Member> >(result); }