示例#1
0
        private static void ReportFirstProcessedMovieMetric()
        {
            var reader         = new FolderReader();
            var processedMovie = reader.ReadAllProcessedMovies().First();

            Console.WriteLine(processedMovie.Metric);
        }
示例#2
0
        private static void ReadAllFilesAtOnce()
        {
            var reader = new FolderReader();

            foreach (var file in reader.ReadAllFiles())
            {
                Console.WriteLine(file.Length.ToString());
            }
        }
示例#3
0
        private static void ReportAllProcessedMovieMetrics()
        {
            var reader = new FolderReader();

            foreach (var processedMovie in reader.ReadAllProcessedMovies())
            {
                Console.WriteLine(processedMovie.Metric);
            }
        }
示例#4
0
        private static void ProcessThreeMovies()
        {
            var reader = new FolderReader();

            foreach (var movie in reader.ReadThreeMovies())
            {
                // Process movie
            }
        }
示例#5
0
        private static void FindCorrectMovie()
        {
            var reader = new FolderReader();

            foreach (var movie in reader.ReadAllMovies())
            {
                if (movie.MovieNumber == 3)
                {
                    // Process movie
                    break;
                }
            }
        }
示例#6
0
 private static void MaterializeAllMovies()
 {
     var reader    = new FolderReader();
     var allMovies = reader.ReadAllMovies().ToList();
 }
示例#7
0
 private static void ProcessFirstMovie()
 {
     var reader = new FolderReader();
     var movie  = reader.ReadAllMovies().First();
     // Process movie
 }