public ScheduledFlight(FlightRoute flightRoute, ISummaryBuilder summaryBuilder, ISummaryOutputGenerator summaryOutputGenerator, IFleetRepository fleetRepository)
        {
            FlightRoute = flightRoute;

            _summaryBuilder         = summaryBuilder;
            _summaryOutputGenerator = summaryOutputGenerator;
            _fleetRepository        = fleetRepository;

            Passengers = new List <Passenger>();
        }
 public DeleteFleetCommandHandler(IFleetRepository fleetRepository)
 {
     this._fleetRepository = fleetRepository;
 }
        public CreateFleetCommandHandler(IFleetRepository fleetRepository)
        {
            DefProg.For(fleetRepository, "fleetRepository").IsNotNull();

            this._fleetRepository = fleetRepository;
        }
 public SummaryOutputGenerator(IScheduledFlightValidator scheduledFlightValidator, IFleetRepository fleetRepository)
 {
     _scheduledFlightValidator = scheduledFlightValidator;
     _fleetRepository          = fleetRepository;
 }
 public FleetQuery(IFleetRepository fleetRepository)
 {
     this._fleetRepository = fleetRepository;
 }
示例#6
0
 public FleetController(IFleetRepository fleetRepository, IUserProfileRepository userProfileRepository)
 {
     _fleetRepository       = fleetRepository;
     _userProfileRepository = userProfileRepository;
 }
 public ManageFleetVehiclesCommandHandler(IFleetRepository fleetRepository)
 {
     this._fleetRepository = fleetRepository;
 }