예제 #1
0
 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);
        }
예제 #3
0
 public FerryAvailabilityService(TimeTables timeTables, Ports ports, Ferries ferries)
 {
     _timeTables = timeTables;
     _ports      = ports;
     _ferries    = ferries;
 }
 public JourneyBookingService(TimeTables timeTables, Bookings bookings, FerryAvailabilityService ferryService)
 {
     _timeTables   = timeTables;
     _bookings     = bookings;
     _ferryService = ferryService;
 }