public MainClass(TextReader @in, TextWriter @out)
 {
     _out = @out;
     _in = @in;
     this.movieRepository = new MovieRepository();
     this.rentalFactory = new RentalFactory(movieRepository);
 }
 public MainClass(TextReader @in, TextWriter @out)
 {
     movieRepository = new MovieRepository();
     var rentalFactory = new RentalFactory(movieRepository);
     console = new MyConsole(@in, @out, rentalFactory);
 }
 public RentalFactory(MovieRepository movieRepository)
 {
     this.movieRepository = movieRepository;
 }
 public RentalFactory(MovieRepository movieRepository)
 {
     this.movieRepository = movieRepository;
 }