public void GetCarousel_WhenCarouselNull_ExpectArgumentNullException()
        {
            _context.Setup(i => i.GetPageContextItem <ICarousel>()).Returns((ICarousel)null);
            var eventsService = new EventsService(_context.Object);

            Assert.ThrowsException <ArgumentNullException>(() => eventsService.GetCarousel());
        }
        public void GetCarousel_WhenCarouselContainsCarouselItems_ExpectCarouselElement()
        {
            _carousel.Setup(i => i.CarouselItems).Returns(new List <IEventDetailsPage> {
                null
            });
            _context.Setup(i => i.GetPageContextItem <ICarousel>()).Returns(_carousel.Object);
            var eventsService = new EventsService(_context.Object);

            var result = eventsService.GetCarousel();

            Assert.IsNotNull(result);
        }
        public void GetCarousel_WhenCarouselEmpty_ExpectArgumentException()
        {
            var eventsService = new EventsService(_context.Object);

            Assert.ThrowsException <ArgumentException>(() => eventsService.GetCarousel());
        }