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