Пример #1
0
 public Airport(IAircraftService aircraftService, ICrewingService crewingService,
                IFlightOperationsService flightOperationsService)
 {
     AircraftService         = aircraftService;
     CrewingService          = crewingService;
     FlightOperationsService = flightOperationsService;
 }
Пример #2
0
 private void SetUpMocksAndServices()
 {
     _aircraftRepositoryMock = Substitute.For <IAircraftRepository <Airplane> >();
     _unitOfWorkMock         = Substitute.For <IUnitOfWork>();
     _airportRepositoryMock  = Substitute.For <IAirportRepository>();
     _aircraftService        = new AircraftService <Airplane>(_aircraftRepositoryMock, _unitOfWorkMock, _airportRepositoryMock);
 }
Пример #3
0
 public FlightBusiness(IFlightService flightService,
                       IAircraftService aircraftService,
                       IAirportService airportService)
 {
     _flightService   = flightService;
     _aircraftService = aircraftService;
     _airportService  = airportService;
 }
 public AircraftServiceTests()
 {
     mapper = new Shared.DTO.MapperConfiguration().Configure().CreateMapper();
     fakeAircraftRepository = A.Fake <IRepository <Aircraft> >();
     fakeUnitOfWork         = A.Fake <IUnitOfWork>();
     Aircrafts       = new List <Aircraft>();
     aircraftService = new AircraftService(fakeUnitOfWork, mapper);
 }
Пример #5
0
 public RouteEditorViewModel(
     NavigateBackCommand navigateBackCommand, IAircraftService aircraftService,
     IEventAggregator eventAggregator)
 {
     _navigateBackCommand = navigateBackCommand;
     _aircraftService     = aircraftService;
     _eventAggregator     = eventAggregator;
     _eventAggregator.GetEvent <PubSubEvent <LocationSelectedEvent> >().Subscribe(OnLocationSelected);
 }
Пример #6
0
 public ScheduledFlight(IFlightService flightService,
                        IPassengerService passengerService,
                        IAircraftService aircraftService,
                        ICalculationService calculationService,
                        IFormat format)
 {
     _flightService      = flightService;
     _calculationService = calculationService;
     _format             = format;
     _passengerService   = passengerService;
     _aircraftService    = aircraftService;
 }
Пример #7
0
 /// <summary>
 ///     Initialisiert eine neue Instanz der <see cref="T:System.Object" />-Klasse.
 /// </summary>
 public LogListViewModel(
     NavigateBackCommand navigateBackCommand, ShowManualEntryCommand showManualEntryCommand, ILogbookService logbookService,
     IEventAggregator eventAggregator, IAircraftService aircraftService,
     ShowAutoEntryCommand showAutoEntryCommand)
 {
     _navigateBackCommand    = navigateBackCommand;
     _showManualEntryCommand = showManualEntryCommand;
     _logbookService         = logbookService;
     _eventAggregator        = eventAggregator;
     _aircraftService        = aircraftService;
     _showAutoEntryCommand   = showAutoEntryCommand;
 }
Пример #8
0
 public BookingController(IHttpClientFactory clientFactory,
                          IOrderService orderService,
                          IClientService clientService,
                          IFlightService flightService,
                          IAircraftService aircraftService)
 {
     this.clientFactory = clientFactory;
     _orderService      = orderService;
     _clientService     = clientService;
     _flightService     = flightService;
     _aircraftService   = aircraftService;
 }
Пример #9
0
 public SummaryFormat(IPassengerService passengerService, IAircraftService aircraftService)
 {
     _passengerService = passengerService;
     _aircraftService  = aircraftService;
     _translation      = new Dictionary <string, string>
     {
         { nameof(GeneralPassenger), "General sales: " },
         { nameof(LoyaltyPassenger), "Loyalty member sales: " },
         { nameof(DiscountedPassenger), "Discounted sales: " },
         { nameof(AirlineEmployeePassenger), "Airline employee comps: " }
     };
 }
Пример #10
0
 public AircraftListViewModel(
     IAircraftService aircraftService, IAircraftModelProvider aircraftModelProvider, SettingsNavigationCommand settingsNavigationCommand,
     RouteEditorNavigationCommand routeEditorNavCommand,
     IEventAggregator eventAggregator,
     ISettingsService settingsService,
     ShowRemoveConfirmationDialogCommand showRemoveConfirmationDialogCommand,
     ShowLogbookForAircraftCommand showLogbookForAircraftCommand)
 {
     _aircraftService                     = aircraftService;
     _settingsNavigationCommand           = settingsNavigationCommand;
     _routeEditorNavCommand               = routeEditorNavCommand;
     _eventAggregator                     = eventAggregator;
     _settingsService                     = settingsService;
     _showRemoveConfirmationDialogCommand = showRemoveConfirmationDialogCommand;
     _showLogbookForAircraftCommand       = showLogbookForAircraftCommand;
     Aircrafts = aircraftModelProvider.Aircrafts;
     CollectionChangedEventManager.AddListener(Aircrafts, this);
     _eventAggregator.GetEvent <PubSubEvent <MapBoundariesChangedEvent> >().Subscribe(OnMapBoundariesChanged);
 }
 public FlightDataValidation(IFlightService flightService, IAircraftService aircraftService)
 {
     this.flightService   = flightService;
     this.aircraftService = aircraftService;
 }
Пример #12
0
 public FlightsController(IFlightService flightService, IAircraftService aircraftService)
 {
     this.flightService   = flightService;
     this.aircraftService = aircraftService;
 }
Пример #13
0
 public AircraftsController(IAircraftService service)
 {
     this.service = service;
 }
Пример #14
0
 public SimulationService(IAirportService airportService, IAircraftService aircraftService)
 {
     this.airportService  = airportService;
     this.aircraftService = aircraftService;
 }
Пример #15
0
 public AircraftsController(IAircraftService aircraftService)
 {
     this._aircraftService = aircraftService;
 }
Пример #16
0
 public AiroportService(IAircraftService aircraftService, ICrewingService crewingService,
                        IFlightOperationsService flightOperationsService)
     : base(aircraftService, crewingService, flightOperationsService)
 {
     ticketPriceDelta = ticketPriceBase / 100 * 48 + priceDeltaConnst;
 }
Пример #17
0
 public AircraftManager(
     IAircraftService aircraftService)
 {
     _aircraftService = aircraftService;
 }
Пример #18
0
 public AircraftsController(IAircraftService <T> aircraftService, IMapper mapper)
 {
     _aircraftService = aircraftService;
     _mapper          = mapper;
 }
 public AircraftControllerTests()
 {
     service             = A.Fake <IAircraftService>();
     aircraftsController = new AircraftsController(service);
     A.CallTo(() => service.GetAll()).Returns(new List <AircraftDto>());
 }
Пример #20
0
 public LoadControlService(IFlightService flightService, IAircraftService aircraftService)
 {
     this.flightService   = flightService;
     this.aircraftService = aircraftService;
 }
Пример #21
0
 public GliderController(IAircraftService <Glider> aircraftService, IMapper mapper) : base(aircraftService, mapper)
 {
 }
Пример #22
0
 public AircraftController(IAircraftService service, ILogger <AircraftController> logger)
 {
     _logger          = logger;
     _aircraftService = service;
 }
Пример #23
0
 public AircraftController(IAircraftService AircraftService, ILogger <AircraftService> logger)
 {
     this.AircraftService = AircraftService;
     this.logger          = logger;
 }
 public MovementsController(IMessageParser messageParser, IAircraftService flightService)
 {
     this.messageParser = messageParser;
     this.flightService = flightService;
 }
Пример #25
0
 public PlanesController(IMapper mapper, IAircraftService service)
 {
     this.mapper  = mapper;
     this.service = service;
 }
Пример #26
0
 public AircraftController(IAircraftService service)
 {
     _service = service;
 }
Пример #27
0
 public FlightValidationService(ICashFlowCalculationService cashFlowCalculationService, IAircraftService aircraftService, IPassengerService passengerService)
 {
     _cashFlowCalculationService = cashFlowCalculationService;
     _aircraftService            = aircraftService;
     _passengerService           = passengerService;
 }
Пример #28
0
 public PlaneTypesController(IAircraftService service)
 {
     this.service = service;
 }
 public AircraftController(IAircraftService aircraftService)
 {
     _aircraftService = aircraftService;
 }
Пример #30
0
 public AirPlaneController(IAircraftService <Airplane> aircraftService, IMapper mapper) : base(aircraftService, mapper)
 {
 }