public void GetShouldIgnoreEmptyVideoLinksItems([Content] Item item, [Content] MediaTemplate mediaTemplate, [Content] MediaSelectorTemplate selectorTemplate, [Content] VideoTemplate vt)
        {
            var child = item.Add("childVideo", new TemplateID(Templates.HasMedia.ID));

            var selector = item.Add("selector", new TemplateID(Templates.HasMediaSelector.ID));

            using (new EditContext(selector))
            {
                selector[Templates.HasMediaSelector.Fields.MediaSelector] = child.ID.ToString();
            }
            // substitute the original provider with the mocked one
            var carouselElements = CarouselElementsRepository.Get(selector);

            carouselElements.Count().Should().Be(0);
        }
        public void GetShouldReturnCollectionForVideoLinkWithThumbnail([Content] Item item, [Content] MediaTemplate mediaTemplate, [Content] MediaSelectorTemplate selectorTemplate, [Content] VideoTemplate vt)
        {
            var child = item.Add("childVideo", new TemplateID(Templates.HasMedia.ID));

            using (new EditContext(child))
            {
                child[Templates.HasMedia.Fields.Thumbnail] = "videoLink";
            }


            var selector = item.Add("selector", new TemplateID(Templates.HasMediaSelector.ID));

            using (new EditContext(selector))
            {
                selector[Templates.HasMediaSelector.Fields.MediaSelector] = child.ID.ToString();
            }
            // substitute the original provider with the mocked one
            var carouselElements = CarouselElementsRepository.Get(selector);

            carouselElements.Count().Should().Be(1);
            carouselElements.First().Item.ID.Should().Be(child.ID);
            carouselElements.First().Item[Templates.HasMedia.Fields.Thumbnail].Should().Be("videoLink");
        }