Exemple #1
0
 public PilotService(IPilotRepository pilotRepository, IAppLogger <PilotService> logger)
 {
     Guard.AgainstNull(pilotRepository, "pilotRepository");
     Guard.AgainstNull(logger, "logger");
     this._pilotRepository = pilotRepository;
     this._logger          = logger;
 }
 public MachinesManager(IPilotRepository pilotRepository, IMachineRepository machineRepository, IPilotFactory pilotFactory, IMachineFactory machineFactory)
 {
     this.pilotRepository   = pilotRepository;
     this.machineRepository = machineRepository;
     this.pilotFactory      = pilotFactory;
     this.machineFactory    = machineFactory;
 }
        public MachinesManager()
        {
            pilotRepository   = new PilotRepository();
            machineRepository = new MachineRepository();

            pilotFactory   = new PilotFactory();
            machineFactory = new MachineFactory();
        }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileIOExportFileInteractor" /> class.
 /// </summary>
 /// <param name="fileExporter">The file exporter.</param>
 /// <param name="contestRepository">The contest repository.</param>
 /// <param name="flightMatrixRepository">The flight matrix repository.</param>
 /// <param name="pilotRepository">The pilot repository.</param>
 /// <param name="pilotRegistrationRepository">The pilot registration repository.</param>
 /// <param name="scoringRepository">The scoring repository.</param>
 /// <param name="logger">The logger.</param>
 /// <exception cref="ArgumentNullException">fileExporter</exception>
 /// <exception cref="System.ArgumentNullException">fileExporter</exception>
 public FileIOExportFileInteractor(IFileExporter fileExporter,
                                   IContestRepository contestRepository,
                                   IFlightMatrixRepository flightMatrixRepository,
                                   IPilotRepository pilotRepository,
                                   IPilotRegistrationRepository pilotRegistrationRepository,
                                   IScoringRepository scoringRepository,
                                   ILoggingService logger) : base(logger)
 {
     this.fileExporter                = fileExporter ?? throw new ArgumentNullException($"{nameof(fileExporter)} cannot be null.");
     this.contestRepository           = contestRepository ?? throw new ArgumentNullException($"{nameof(contestRepository)} cannot be null.");
     this.flightMatrixRepository      = flightMatrixRepository ?? throw new ArgumentNullException($"{nameof(flightMatrixRepository)} cannot be null.");
     this.pilotRepository             = pilotRepository ?? throw new ArgumentNullException($"{nameof(pilotRepository)} cannot be null.");
     this.pilotRegistrationRepository = pilotRegistrationRepository ?? throw new ArgumentNullException($"{nameof(pilotRegistrationRepository)} cannot be null.");
     this.scoringRepository           = scoringRepository ?? throw new ArgumentNullException($"{nameof(scoringRepository)} cannot be null.");
 }
Exemple #5
0
        public UnitOfWork(ICrewRepository crewRepository,
                          IFlightRepository flightRepository,
                          IPilotRepository pilotRepository,
                          IPlaneRepository planeRepository,
                          IPlaneTypeRepository planeTypeRepository,
                          IStewardessRepository stewardessRepository,
                          ITakeOffRepository takeOffRepository,
                          ITicketRepository ticketRepository,
                          MyContext context)
        {
            this.crewRepository       = crewRepository;
            this.flightRepository     = flightRepository;
            this.pilotRepository      = pilotRepository;
            this.planeRepository      = planeRepository;
            this.planeTypeRepository  = planeTypeRepository;
            this.stewardessRepository = stewardessRepository;
            this.takeOffRepository    = takeOffRepository;
            this.ticketRepository     = ticketRepository;

            this.context = context;
        }
 public PilotController(IPilotRepository pilotRepository)
 {
     _pilotRepository = pilotRepository;
 }
 public UpdateCrewCommandHandler(ICrewRepository crewRepository, IPilotRepository pilotRepository, IStewardessRepository stewardessRepository)
 {
     _crewRepository       = crewRepository;
     _pilotRepository      = pilotRepository;
     _stewardessRepository = stewardessRepository;
 }
Exemple #8
0
 public DeletePilotCommandHandler(IPilotRepository pilotRepository)
 {
     _pilotRepository = pilotRepository;
 }
 public GridController(IPilotRepository pilotRepository, ICarRepository carRepository)
 {
     _pilotRepository = pilotRepository;
     _carRepository = carRepository;
 }
Exemple #10
0
 public StarshipService(IPilotRepository pilotRepository, IStarshipRepository starshipRepository)
 {
     this.pilotRepository    = pilotRepository;
     this.starshipRepository = starshipRepository;
 }
		public PilotService(IPilotRepository pilotRepo)
		{
			this.pilotRepo = pilotRepo;
		}
Exemple #12
0
 public PilotsQueryHandler(IPilotRepository pilotRepository, IMapper mapper)
 {
     _pilotRepository = pilotRepository;
     _mapper          = mapper;
 }
 public CreatePilotCommandHandler(IPilotRepository pilotRepository, IMapper mapper)
 {
     _pilotRepository = pilotRepository;
     _mapper          = mapper;
 }
Exemple #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PilotQueryInteractor"/> class.
 /// </summary>
 /// <param name="pilotRepository">The pilot repository.</param>
 /// <param name="logger">The logger.</param>
 public PilotQueryInteractor(IPilotRepository pilotRepository, ILoggingService logger) : base(logger)
 {
     Validate.IsNotNull(pilotRepository, nameof(pilotRepository));
     this.pilotRepository = pilotRepository;
 }
Exemple #15
0
 public PilotService(IPilotRepository pilotRepository)
 {
     this.pilotRepository = pilotRepository;
 }