Exemplo n.º 1
0
 public Airport(IAircraftService aircraftService, ICrewingService crewingService,
                IFlightOperationsService flightOperationsService)
 {
     AircraftService         = aircraftService;
     CrewingService          = crewingService;
     FlightOperationsService = flightOperationsService;
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 5
0
 public RouteEditorViewModel(
     NavigateBackCommand navigateBackCommand, IAircraftService aircraftService,
     IEventAggregator eventAggregator)
 {
     _navigateBackCommand = navigateBackCommand;
     _aircraftService     = aircraftService;
     _eventAggregator     = eventAggregator;
     _eventAggregator.GetEvent <PubSubEvent <LocationSelectedEvent> >().Subscribe(OnLocationSelected);
 }
Exemplo n.º 6
0
 public ScheduledFlight(IFlightService flightService,
                        IPassengerService passengerService,
                        IAircraftService aircraftService,
                        ICalculationService calculationService,
                        IFormat format)
 {
     _flightService      = flightService;
     _calculationService = calculationService;
     _format             = format;
     _passengerService   = passengerService;
     _aircraftService    = aircraftService;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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: " }
     };
 }
Exemplo n.º 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;
 }
Exemplo n.º 12
0
 public FlightsController(IFlightService flightService, IAircraftService aircraftService)
 {
     this.flightService   = flightService;
     this.aircraftService = aircraftService;
 }
Exemplo n.º 13
0
 public AircraftsController(IAircraftService service)
 {
     this.service = service;
 }
Exemplo n.º 14
0
 public SimulationService(IAirportService airportService, IAircraftService aircraftService)
 {
     this.airportService  = airportService;
     this.aircraftService = aircraftService;
 }
Exemplo n.º 15
0
 public AircraftsController(IAircraftService aircraftService)
 {
     this._aircraftService = aircraftService;
 }
Exemplo n.º 16
0
 public AiroportService(IAircraftService aircraftService, ICrewingService crewingService,
                        IFlightOperationsService flightOperationsService)
     : base(aircraftService, crewingService, flightOperationsService)
 {
     ticketPriceDelta = ticketPriceBase / 100 * 48 + priceDeltaConnst;
 }
Exemplo n.º 17
0
 public AircraftManager(
     IAircraftService aircraftService)
 {
     _aircraftService = aircraftService;
 }
Exemplo n.º 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>());
 }
Exemplo n.º 20
0
 public LoadControlService(IFlightService flightService, IAircraftService aircraftService)
 {
     this.flightService   = flightService;
     this.aircraftService = aircraftService;
 }
Exemplo n.º 21
0
 public GliderController(IAircraftService <Glider> aircraftService, IMapper mapper) : base(aircraftService, mapper)
 {
 }
Exemplo n.º 22
0
 public AircraftController(IAircraftService service, ILogger <AircraftController> logger)
 {
     _logger          = logger;
     _aircraftService = service;
 }
Exemplo n.º 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;
 }
Exemplo n.º 25
0
 public PlanesController(IMapper mapper, IAircraftService service)
 {
     this.mapper  = mapper;
     this.service = service;
 }
Exemplo n.º 26
0
 public AircraftController(IAircraftService service)
 {
     _service = service;
 }
Exemplo n.º 27
0
 public FlightValidationService(ICashFlowCalculationService cashFlowCalculationService, IAircraftService aircraftService, IPassengerService passengerService)
 {
     _cashFlowCalculationService = cashFlowCalculationService;
     _aircraftService            = aircraftService;
     _passengerService           = passengerService;
 }
Exemplo n.º 28
0
 public PlaneTypesController(IAircraftService service)
 {
     this.service = service;
 }
 public AircraftController(IAircraftService aircraftService)
 {
     _aircraftService = aircraftService;
 }
Exemplo n.º 30
0
 public AirPlaneController(IAircraftService <Airplane> aircraftService, IMapper mapper) : base(aircraftService, mapper)
 {
 }