private readonly ShoppingCart _shoppingCart; // The users shopping card #endregion Fields #region Constructors public Midterm2() { _books = new List<Book> { new Book("Object Oriented Programming in C#", 45.5), new Book("Web Programming in PHP", 24.9), new Book("ASP.NET Web Application Development", 30.0), new Book("Java Programming in 21 Days", 37.0), new Book("Advanced Database Topics", 19.9) }; // Make the options list _bookOptions = new OptionsList(); _books.ForEach(book => _bookOptions.Add(book.Title)); // Instantiate the Shopping card _shoppingCart = new ShoppingCart(); // Instantiate the console _console = new ExtConsole("Algonquin College Online Book Store"); }
public BankMananger() { _console = new ExtConsole("Algonquin Bankings System"); _console.WriteTitle(); }