public void VideoGallery_VerifyLimit()
        {
            var mvcProxy = new MvcControllerProxy();
            mvcProxy.ControllerName = typeof(VideoGalleryController).FullName;
            var videoGalleryController = new VideoGalleryController();
            videoGalleryController.Model.SelectionMode = SelectionMode.AllItems;
            videoGalleryController.Model.DisplayMode = ListDisplayMode.Limit;
            videoGalleryController.Model.SortExpression = "Title ASC";
            videoGalleryController.Model.ItemsPerPage = 1;
            mvcProxy.Settings = new ControllerSettings(videoGalleryController);

            var videos = videoGalleryController.Model.CreateListViewModel(null, 1).Items.ToArray();
            Assert.IsTrue(videos.Length.Equals(1), "Number of Videos is not correct");
            Assert.AreEqual(VideoTitle + 1, videos[0].Fields.Title.Value, "Wrong title");
        }
        public void VideoGallery_VerifySortingLastModified()
        {
            var mvcProxy = new MvcControllerProxy();
            mvcProxy.ControllerName = typeof(VideoGalleryController).FullName;
            var videoGalleryController = new VideoGalleryController();
            videoGalleryController.Model.SelectionMode = SelectionMode.AllItems;
            videoGalleryController.Model.SortExpression = "LastModified DESC";
            mvcProxy.Settings = new ControllerSettings(videoGalleryController);

            this.ChangeModifiedDateOfVideo3();

            var videos = videoGalleryController.Model.CreateListViewModel(null, 1).Items.ToArray();
            Assert.IsTrue(videos.Length.Equals(3), "Number of Videos is not correct");

            //// expected: Video31, Video2, Video1
            Assert.AreEqual(VideoTitle + 3 + 1, videos[0].Fields.Title.Value, "Wrong title");
            Assert.AreEqual(VideoTitle + 2, videos[1].Fields.Title.Value, "Wrong title");
            Assert.AreEqual(VideoTitle + 1, videos[2].Fields.Title.Value, "Wrong title");
        }