public void Start() { _bx.SetupBoxOffice(); Console.Clear(); _activeUser = GetUser(); CinemaManagerMenu(); }
private BoxOffice _bx = new BoxOffice(); // CREATES A PRIVATE BOXOFFICE WHICH IS A LIST OF MOVIES public void Start() { _bx.SetupBoxOffice(); Console.Clear(); _activeUser = GetUser(); // SETS ACTIVE USER TO RETURN VALUE OF GETUSER FUNCTION BELOW CinemaManagerMenu(); }
static bool RunTests() { try { //creating cinema BoxOffice bx = new BoxOffice(); bx.SetupBoxOffice(); Cinema village = new Cinema() { Name = "The Village", Address = new Address() { StreetAddress = "123 fake str." }, DefaultTicketPrice = 11.99 }; village.CreateTheater("Theater 7", 7, 3); village.CreateShowtime(village.Theaters[0], bx.Movies.Find(m => m.Title == "Black Panther"), "12:00 PM"); village.PrintShowtimes(); village.ShowAvailableTickets(village.Showtimes[0]); } catch (Exception error) { System.Console.WriteLine(error.Message); return(false); } return(true); }