public void SetUp() { rentals = Substitute.For <Rentals>(Substitute.For <IDateTime>()); sut = new RealVideoStore(rentals); movie = new Movie { Title = "Rambo", Year = 2001, Genre = "P**n" }; }
static void Main(string[] args) { var store = new RealVideoStore(new Rentals(new Video_Store.DateTime())); var Exit = false; do { Console.Clear(); PrintMenu(); Console.Write(" > "); var choice = Console.ReadLine(); switch (choice.ToLower()) { case "1": RegisterCustomer(store); break; case "2": AddMovie(store); break; case "3": RentAMovie(store); break; case "4": ReturnMovie(store); break; case "5": GetMovies(store); break; case "6": Exit = true; break; } Console.ReadLine(); } while (!Exit); }