Exemplo n.º 1
0
 public TripService(ITripRepository tripRepository,
                    IAvailableCabsService availableCabsService,
                    IBookingService bookingService,
                    ICabLocationService cabLocationService)
 {
     TripRepository       = tripRepository;
     AvailableCabsService = availableCabsService;
     BookingService       = bookingService;
     CabLocationService   = cabLocationService;
 }
Exemplo n.º 2
0
        public CabsModule(IAvailableCabsService cabsService, ICabLocationService cabLocationService) : base("/cabs")
        {
            CabsService        = cabsService;
            CabLocationService = cabLocationService;

            Get["/"] = (context) =>
            {
                return(GetCabs());
            };
        }
Exemplo n.º 3
0
 public AvailableCabsService(ICabLocationService cabLocationService,
                             IAvailableCabsRepository availableCabsRepository)
 {
     CabLocationService      = cabLocationService;
     AvailableCabsRepository = availableCabsRepository;
 }