public void ShouldGetVideosInOrderWhenVideoDirectoryIsLinear()
        {
            var testPool = new PoolConfigurationBuilder()
                .WithName("Test")
                .WithVideoDirectory(isLinear: true, path: "C:\\Test\\");

            GivenPlaylistConfiguration
                .WithPool(testPool)
                .WithSequenceItem("Test");

            GivenPathYieldsVideos("C:\\Test\\", new List<Video>
            {
                new Video("F:\\Test4.mp4"),
                new Video("F:\\Test2.mp4"),
                new Video("F:\\Test3.mp4")
            });

            WhenBuildingPlaylist();

            ThenPlaylist.Videos.ShouldEqual(new List<Video>
            {
                new Video("F:\\Test2.mp4"),
                new Video("F:\\Test3.mp4"),
                new Video("F:\\Test4.mp4")
            });
        }
        public void StressTest()
        {
            var testPool = new PoolConfigurationBuilder()
                .WithName("Test")
                .WithVideoDirectory(isLinear: false, path: "C:\\Test\\")
                .WithVideoDirectory(isLinear: false, path: "C:\\Test2\\");

            GivenPlaylistConfiguration
                .WithPool(testPool)
                .WithSequenceItem("Test");

            GivenPathYieldNRandomVideos("C:\\Test\\", 100);
            GivenPathYieldNRandomVideos("C:\\Test2\\", 150);

            WhenBuildingPlaylist();

            ThenPlaylist.Videos.ShouldHaveCount(250);
            ThenAllVideosShouldNotBeNull();
        }
 public PlaylistConfigurationBuilder WithPool(PoolConfigurationBuilder poolConfigurationBuilder)
 {
     return WithPool(poolConfigurationBuilder.Build());
 }