private static void ReportFirstProcessedMovieMetric() { var reader = new FolderReader(); var processedMovie = reader.ReadAllProcessedMovies().First(); Console.WriteLine(processedMovie.Metric); }
private static void ReadAllFilesAtOnce() { var reader = new FolderReader(); foreach (var file in reader.ReadAllFiles()) { Console.WriteLine(file.Length.ToString()); } }
private static void ReportAllProcessedMovieMetrics() { var reader = new FolderReader(); foreach (var processedMovie in reader.ReadAllProcessedMovies()) { Console.WriteLine(processedMovie.Metric); } }
private static void ProcessThreeMovies() { var reader = new FolderReader(); foreach (var movie in reader.ReadThreeMovies()) { // Process movie } }
private static void FindCorrectMovie() { var reader = new FolderReader(); foreach (var movie in reader.ReadAllMovies()) { if (movie.MovieNumber == 3) { // Process movie break; } } }
private static void MaterializeAllMovies() { var reader = new FolderReader(); var allMovies = reader.ReadAllMovies().ToList(); }
private static void ProcessFirstMovie() { var reader = new FolderReader(); var movie = reader.ReadAllMovies().First(); // Process movie }