public FerryAvailabilityService(Ports ports, Ferries ferries, TimeTables timeTables, PortManager portManager) { _ports = ports; _ferries = ferries; _timeTables = timeTables; _portManager = portManager; }
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); }
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); }
public FerryAvailabilityService(TimeTables timeTables, Ports ports, Ferries ferries) { _timeTables = timeTables; _ports = ports; _ferries = ferries; }
public PortManager(Ports ports, Ferries ferries) { _ports = ports; _ferries = ferries; }