private static void WireUp() { var timeTables = new TimeTables(); var ferries = new Ferries(); var bookings = new Bookings(); _ports = new Ports(); _ferryService = new FerryAvailabilityService(timeTables, _ports, ferries); _bookingService = new JourneyBookingService(timeTables, bookings, _ferryService); _timeTableService = new TimeTableService(timeTables, bookings, _ferryService); }
public JourneyBookingService(TimeTables timeTables, Bookings bookings, FerryAvailabilityService ferryService) { _timeTables = timeTables; _bookings = bookings; _ferryService = ferryService; }
private static void WireUp() { var timeTables = new TimeTables(); var ferries = new Ferries(); var bookings = new Bookings(); _ports = new Ports(); _ferryService = new FerryAvailabilityService(_ports, ferries, timeTables, new PortManager(_ports, ferries)); _bookingService = new JourneyBookingService(timeTables, bookings, _ferryService); _timeTableService = new TimeTableService(timeTables, bookings, _ferryService); }