public Airport(IAircraftService aircraftService, ICrewingService crewingService, IFlightOperationsService flightOperationsService) { AircraftService = aircraftService; CrewingService = crewingService; FlightOperationsService = flightOperationsService; }
private void SetUpMocksAndServices() { _aircraftRepositoryMock = Substitute.For <IAircraftRepository <Airplane> >(); _unitOfWorkMock = Substitute.For <IUnitOfWork>(); _airportRepositoryMock = Substitute.For <IAirportRepository>(); _aircraftService = new AircraftService <Airplane>(_aircraftRepositoryMock, _unitOfWorkMock, _airportRepositoryMock); }
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); }
public RouteEditorViewModel( NavigateBackCommand navigateBackCommand, IAircraftService aircraftService, IEventAggregator eventAggregator) { _navigateBackCommand = navigateBackCommand; _aircraftService = aircraftService; _eventAggregator = eventAggregator; _eventAggregator.GetEvent <PubSubEvent <LocationSelectedEvent> >().Subscribe(OnLocationSelected); }
public ScheduledFlight(IFlightService flightService, IPassengerService passengerService, IAircraftService aircraftService, ICalculationService calculationService, IFormat format) { _flightService = flightService; _calculationService = calculationService; _format = format; _passengerService = passengerService; _aircraftService = aircraftService; }
/// <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; }
public BookingController(IHttpClientFactory clientFactory, IOrderService orderService, IClientService clientService, IFlightService flightService, IAircraftService aircraftService) { this.clientFactory = clientFactory; _orderService = orderService; _clientService = clientService; _flightService = flightService; _aircraftService = aircraftService; }
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: " } }; }
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; }
public FlightsController(IFlightService flightService, IAircraftService aircraftService) { this.flightService = flightService; this.aircraftService = aircraftService; }
public AircraftsController(IAircraftService service) { this.service = service; }
public SimulationService(IAirportService airportService, IAircraftService aircraftService) { this.airportService = airportService; this.aircraftService = aircraftService; }
public AircraftsController(IAircraftService aircraftService) { this._aircraftService = aircraftService; }
public AiroportService(IAircraftService aircraftService, ICrewingService crewingService, IFlightOperationsService flightOperationsService) : base(aircraftService, crewingService, flightOperationsService) { ticketPriceDelta = ticketPriceBase / 100 * 48 + priceDeltaConnst; }
public AircraftManager( IAircraftService aircraftService) { _aircraftService = aircraftService; }
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>()); }
public LoadControlService(IFlightService flightService, IAircraftService aircraftService) { this.flightService = flightService; this.aircraftService = aircraftService; }
public GliderController(IAircraftService <Glider> aircraftService, IMapper mapper) : base(aircraftService, mapper) { }
public AircraftController(IAircraftService service, ILogger <AircraftController> logger) { _logger = logger; _aircraftService = service; }
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; }
public PlanesController(IMapper mapper, IAircraftService service) { this.mapper = mapper; this.service = service; }
public AircraftController(IAircraftService service) { _service = service; }
public FlightValidationService(ICashFlowCalculationService cashFlowCalculationService, IAircraftService aircraftService, IPassengerService passengerService) { _cashFlowCalculationService = cashFlowCalculationService; _aircraftService = aircraftService; _passengerService = passengerService; }
public PlaneTypesController(IAircraftService service) { this.service = service; }
public AircraftController(IAircraftService aircraftService) { _aircraftService = aircraftService; }
public AirPlaneController(IAircraftService <Airplane> aircraftService, IMapper mapper) : base(aircraftService, mapper) { }