public VideoRentalStore(Inventory storeInventory, Customers customers)
 {
     this.storeInventory = storeInventory;
     this.customersList = customers;
     this.storeTransactions = new List<ConfirmedTransaction>();
 }
Example #2
0
        public static Inventory CreateInventory()
        {
            string[] filmArr = {"Casablanca",
                                "The Godfather",
                                "Gone with the Wind",
                                "Lawrence of Arabia",
                                "The Wizard of Oz",
                                "The Graduate",
                                "On the Waterfront",
                                "Schindler's List",
                                "Singin' in the Rain",
                                "It's a Wonderful Life",
                                "Sunset Boulevard",
                                "The Bridge on the River Kwai",
                                "Some Like It Hot",
                                "Star Wars",
                                "All About Eve",
                                "The African Queen",
                                "Psycho",
                                "The General",
                                "Chinatown",
                                "One Flew Over the Cuckoo's Nest",
                                "The Grapes of Wrath",
                                "2001: A Space Odyssey",
                                "The Maltese Falcon",
                                "Raging Bull",
                                "E.T. the Extra-Terrestrial",
                                "Dr. Strangelove",
                                "Bonnie and Clyde",
                                "Apocalypse Now",
                                "Mr. Smith Goes to Washington",
                                "The Treasure of the Sierra Madre",
                                "Annie Hall",
                                "The Godfather Part II",
                                "High Noon",
                                "To Kill a Mockingbird",
                                "It Happened One Night",
                                "Midnight Cowboy",
                                "The Best Years of Our Lives",
                                "Double Indemnity",
                                "Doctor Zhivago",
                                "North by Northwest",
                                "Rear Window",
                                "King Kong",
                                "The Birth of a Nation",
                                "A Streetcar Named Desire",
                                "A Clockwork Orange",
                                "Taxi Driver",
                                "Jaws",
                                "Intolerance",
                                "Butch Cassidy and the Sundance Kid",
                                "The Lord of the Rings: The Fellowship of the Ring",
                                "The Philadelphia Story",
                                "From Here to Eternity",
                                "Amadeus",
                                "All Quiet on the Western Front",
                                "The Sound of Music",
                                "MASH",
                                "The Third Man",
                                "Fantasia",
                                "Rebel Without a Cause",
                                "Nashville",
                                "Raiders of the Lost Ark"};

            Inventory inv = new Inventory();

            string[] arr = { "New release", "Regular film", "Old film" };
            Random rnd = new Random();

            foreach (string s in filmArr)
            {
                inv.AddFilm(s, new Type(arr[rnd.Next(0, arr.Length)]));
            }

            return inv;
        }