Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public IActionResult Index()
        {
            string user = Request.Cookies["currentUser"];

            return(View(_eventsAccessor.GetAllEvents(user)));
        }