public void GetVideosFromService()
        {
            // Arrange
            var mockedVideos = new VideoModel[]
            {
                new VideoModel {
                    Title = "First", Url = "FirstUrl"
                },
                new VideoModel {
                    Title = "Second", Url = "SecondUrl"
                }
            };
            var mockedService = new Mock <IVideoService>();

            mockedService.Setup(s => s.GetVideosFromGallery(It.IsAny <string>())).Returns(mockedVideos).Verifiable();

            var controller = new VideosController(mockedService.Object);

            // Act
            var result = controller.GetAll(null);

            // Assert
            StringAssert.Contains(mockedVideos[0].Title, result);
            StringAssert.Contains(mockedVideos[0].Url, result);
            StringAssert.Contains(mockedVideos[1].Title, result);
            StringAssert.Contains(mockedVideos[1].Url, result);
            mockedService.Verify(s => s.GetVideosFromGallery(It.IsAny <string>()), Times.Once);
        }
        public void GetAll_ReturnResults()
        {
            // Arrange
            var logger     = Substitute.For <ILogger>();
            var controller = new VideosController(logger);

            // Act
            var result = controller.GetAll();

            //Assert
            Assert.NotNull(result);
            Assert.NotEqual(0, result.Count());
        }