public void GetAllEvents_ShouldReturnListOfEventsForGivenUserName() { //Arrange string userName = "******"; //Act IQueryable <Event> evnts = _eventsAccessor.GetAllEvents(userName); int count = evnts.Count(); //Assert Assert.That(count, Is.EqualTo(3)); }
public IActionResult Index() { string user = Request.Cookies["currentUser"]; return(View(_eventsAccessor.GetAllEvents(user))); }