public void Check_On_UserName_Of_Item_In_List_Of_HostUsers() { List <HostUserViewModel> hostUsers = hostUserAppService.GetAllHostUser(); Assert.That(hostUsers, Has.Exactly(1). Matches <HostUserViewModel>(h => h.UserName.Contains("TestHost"))); }
public ActionResult Index() { return(View(hostAppService.GetAllHostUser().FirstOrDefault())); }