static void Main(string[] args) { // Create view MenuView view = new MenuView(); // Create model DatabaseModel databaseModel = new DatabaseModel(); MemberHandler memberHandler = new MemberHandler(databaseModel); BoatHandler boatHandler = new BoatHandler(databaseModel); // Create controller MenuController menuController = new MenuController(view, memberHandler, boatHandler); menuController.run(); }
public MemberController(MenuView view, MemberHandler memberHandler, BoatHandler boatHandler) { _view = view; _memberHandler = memberHandler; _boatHandler = boatHandler; }