private void SetUpMocksAndServices() { _aircraftRepositoryMock = Substitute.For <IAircraftRepository <Airplane> >(); _unitOfWorkMock = Substitute.For <IUnitOfWork>(); _airportRepositoryMock = Substitute.For <IAirportRepository>(); _aircraftService = new AircraftService <Airplane>(_aircraftRepositoryMock, _unitOfWorkMock, _airportRepositoryMock); }
public AircraftsController( IUnitOfWork unitOfWork, ILotRepository lotRepository, IInventoryRepository inventoryRepository, IAircraftRepository aircraftRepository, IAircraftRegistrationRepository aircraftRegistrationRepository, IAircraftRegMarkRepository aircraftRegMarkRepository, ISModeCodeRepository sModeCodeRepository, IFileRepository fileRepository, IApplicationRepository applicationRepository, ICaseTypeRepository caseTypeRepository, ILotEventDispatcher lotEventDispatcher, UserContext userContext) { this.unitOfWork = unitOfWork; this.lotRepository = lotRepository; this.inventoryRepository = inventoryRepository; this.aircraftRepository = aircraftRepository; this.aircraftRegistrationRepository = aircraftRegistrationRepository; this.aircraftRegMarkRepository = aircraftRegMarkRepository; this.sModeCodeRepository = sModeCodeRepository; this.fileRepository = fileRepository; this.applicationRepository = applicationRepository; this.caseTypeRepository = caseTypeRepository; this.lotEventDispatcher = lotEventDispatcher; this.userContext = userContext; }
public GvaNomController( IUnitOfWork unitOfWork, ILotRepository lotRepository, IApplicationRepository applicationRepository, IPersonRepository personRepository, IAircraftRepository aircraftRepository, IAirportRepository airportRepository, IEquipmentRepository equipmentRepository, IOrganizationRepository organizationRepository, ICaseTypeRepository caseTypeRepository, INomRepository nomRepository, IStageRepository stageRepository, IExaminationSystemRepository examinationSystemRepository, IAircraftRegistrationRepository aircraftRegistrationRepository, IEnumerable<IDataGenerator> dataGenerators) { this.unitOfWork = unitOfWork; this.lotRepository = lotRepository; this.applicationRepository = applicationRepository; this.personRepository = personRepository; this.aircraftRepository = aircraftRepository; this.airportRepository = airportRepository; this.equipmentRepository = equipmentRepository; this.organizationRepository = organizationRepository; this.caseTypeRepository = caseTypeRepository; this.nomRepository = nomRepository; this.stageRepository = stageRepository; this.examinationSystemRepository = examinationSystemRepository; this.aircraftRegistrationRepository = aircraftRegistrationRepository; this.dataGenerators = dataGenerators; }
public ApplicationsController( IUnitOfWork unitOfWork, ILotRepository lotRepository, IPersonRepository personRepository, IOrganizationRepository organizationRepository, IAircraftRepository aircraftRepository, IAirportRepository airportRepository, IEquipmentRepository equipmentRepository, IDocRepository docRepository, IApplicationRepository applicationRepository, INomRepository nomRepository, IFileRepository fileRepository, IExaminationSystemRepository examinationSystemRepository, ILotEventDispatcher lotEventDispatcher, UserContext userContext) { this.unitOfWork = unitOfWork; this.lotRepository = lotRepository; this.personRepository = personRepository; this.organizationRepository = organizationRepository; this.aircraftRepository = aircraftRepository; this.airportRepository = airportRepository; this.equipmentRepository = equipmentRepository; this.docRepository = docRepository; this.applicationRepository = applicationRepository; this.nomRepository = nomRepository; this.examinationSystemRepository = examinationSystemRepository; this.fileRepository = fileRepository; this.lotEventDispatcher = lotEventDispatcher; this.userContext = userContext; }
public SnRegAppService(ISnRegQuery snRegQuery, ISnRegRepository snRegRepository, IAircraftRepository aircraftRepository, IPnRegRepository pnRegRepository) { _snRegQuery = snRegQuery; _snRegRepository = snRegRepository; _aircraftRepository = aircraftRepository; _pnRegRepository = pnRegRepository; }
public AirCraftController(ILoggerFactory loggerFactory, IAircraftRepository aircraftRepository) { _logger = loggerFactory.CreateLogger(GetType()); _logger.LogDebug("Construct AirCraftController"); _aircraftRepository = aircraftRepository; }
/// <summary> /// /// </summary> /// <param name="flightRepository"></param> /// <param name="aircraftRepository"></param> /// <param name="airportRepository"></param> public FlightController(IFlightRepository flightRepository, IAircraftRepository aircraftRepository, IAirportRepository airportRepository) { _flightRepository = flightRepository; _aircraftRepository = aircraftRepository; _airportRepository = airportRepository; }
public SnRemInstRecordAppService(ISnRemInstRecordQuery snRemInstRecordQuery, ISnRemInstRecordRepository snRemInstRecordRepository, IAircraftRepository aircraftRepository) { _snRemInstRecordQuery = snRemInstRecordQuery; _snRemInstRecordRepository = snRemInstRecordRepository; _aircraftRepository = aircraftRepository; }
public AircraftsControllerTests() { this.aircrafts = new List <Aircraft>(); aircrafts.Add(new Aircraft("AAA", "Aircraft AAA", 1, 0)); aircrafts.Add(new Aircraft("BBB", "Aircraft BBB", 10, 1)); this.aircraftRepository = new global::Flight.Api.Tests.Repositories.AircraftRepository(aircrafts); }
public FlightRepositoryFacade( IFlightRepository flightRepository, IAirportRepository airportRespository, IAircraftRepository aircraftRepository) { _flightRepository = flightRepository; _airportRespository = airportRespository; _aircraftRepository = aircraftRepository; }
public AircraftRegistrationRepository( IUnitOfWork unitOfWork, ILotRepository lotRepository, IAircraftRepository aircraftRepository) { this.unitOfWork = unitOfWork; this.lotRepository = lotRepository; this.aircraftRepository = aircraftRepository; }
public PlanAircraftAppService(IPlanAircraftQuery planAircraftQuery, IAircraftRepository aircraftRepository, IAircraftTypeRepository aircraftTypeRepository, IAirlinesRepository airlinesRepository, IPlanAircraftRepository planAircraftRepository) { _planAircraftQuery = planAircraftQuery; _aircraftRepository = aircraftRepository; _aircraftTypeRepository = aircraftTypeRepository; _airlinesRepository = airlinesRepository; _planAircraftRepository = planAircraftRepository; }
public FlightController(IFlightRepository flightrepos, IAirportRepository airportRepo, IAirlineCompanyRepository airlineRepo, IAircraftRepository aircraftRepo) { _flightrepos = flightrepos; _airportRepo = airportRepo; _airlineRepo = airlineRepo; _aircraftRepo = aircraftRepo; airports = _airportRepo.GetAllAirport(); flights = _flightrepos.GetAllFlight(); airlines = _airlineRepo.GetAllAirlines(); aircrafts = _aircraftRepo.GetAllAircraft(); }
public OpenFlightsDataCache(HttpClient httpClient, IMemoryCache memoryCache) { _memoryCache = memoryCache; _httpClient = httpClient; _disposeMode = DisposeModeEnum.DoNothing; IDataAccessFactory factory = new DataAccessFactory(_httpClient, _memoryCache); _airportRepository = factory.CreateAirportRepository(); _aircraftRepository = factory.CreateAircraftRepository(); _routeRepository = factory.CreateRouteRepository(); _airlineRepository = factory.CreateAirlineRepository(); }
public AircraftAppService(IAircraftQuery aircraftQuery, IActionCategoryRepository actionCategoryRepository, IAircraftRepository aircraftRepository, IAircraftTypeRepository aircraftTypeRepository, IAirlinesRepository airlinesRepository, ISupplierRepository supplierRepository, IAircraftConfigurationRepository aircraftConfigurationRepository) { _aircraftQuery = aircraftQuery; _actionCategoryRepository = actionCategoryRepository; _aircraftRepository = aircraftRepository; _aircraftTypeRepository = aircraftTypeRepository; _airlinesRepository = airlinesRepository; _supplierRepository = supplierRepository; _aircraftConfigurationRepository = aircraftConfigurationRepository; }
public HomeController( ILoggerFactory loggerFactory, IAircraftRepository aircraftRepository, IAirportRepository airportRepository, IFlightRepository flightRepository) { _logger = loggerFactory.CreateLogger(GetType()); _logger.LogDebug("Construct HomeController"); _aircraftRepository = aircraftRepository; _airportRepository = airportRepository; _flightRepository = flightRepository; }
public AircraftType(IAircraftRepository aircraftRepository) { Field(x => x.Id); Field(x => x.Name, true); Field <StringGraphType>("lastServiceDate", resolve: context => context.Source.LastServiceDate.ToShortDateString()); Field <StringGraphType>("lastUsage", resolve: context => context.Source.LastUsage.ToShortDataString()); Field <ListGraphType <FlightType> >("flights", arguments: new QueryArguments(new QueryArgument <IntGraphType> { Name = "id" }), resolve: context => aircraftRepository.Get(context.Source.Id), description: "This Aircrafts Flights"); }
public CustomerInformationModel() { _aircraftRepo = SimpleIoc.Default.GetInstance<IAircraftRepository>(); _upgradeRepo = SimpleIoc.Default.GetInstance<IUpgradeRepository>(); _customerRepo = SimpleIoc.Default.GetInstance<ICustomerRepository>(); _configurationRepo= SimpleIoc.Default.GetInstance<ICustomerConfigurationRespository>(); _configurationFileManager = new ConfigurationFileManager(); if (! SimpleIoc.Default.IsRegistered<IConfiguration>()) { var configuration = new Configuration("id", new List<IUpgradeItem>(), new List<IAircraft>(), System.DateTime.Now.ToString(), ConfigurationState.IN_PROGRESS, null, _customerRepo.GetCustomerById("emirates")); SimpleIoc.Default.Register<IConfiguration>(() => configuration); } }
public SnHistoryAppService(ISnHistoryQuery snHistoryQuery, ISnHistoryRepository snHistoryRepository, IAircraftRepository aircraftRepository, IPnRegRepository pnRegRepository, ISnRegRepository snRegRepository, ISnRemInstRecordRepository snRemInstRecordRepository) { _aircraftRepository = aircraftRepository; _pnRegRepository = pnRegRepository; _snHistoryQuery = snHistoryQuery; _snHistoryRepository = snHistoryRepository; _snRegRepository = snRegRepository; _snRemInstRecordRepository = snRemInstRecordRepository; }
public PlanHistoryAppService(IPlanHistoryQuery planHistoryQuery, IActionCategoryRepository actionCategoryRepository, IAircraftTypeRepository aircraftTypeRepository, IAircraftRepository aircraftRepository, IAirlinesRepository airlinesRepository, IAnnualRepository annualRepository, IPlanHistoryRepository planHistoryRepository) { _planHistoryQuery = planHistoryQuery; _actionCategoryRepository = actionCategoryRepository; _aircraftRepository = aircraftRepository; _aircraftTypeRepository = aircraftTypeRepository; _airlinesRepository = airlinesRepository; _annualRepository = annualRepository; _planHistoryRepository = planHistoryRepository; }
public GrapherMutation(IAircraftRepository aircraftRepository) { Name = "CreateAircraftMutation"; Field <AircraftType>( "createAircraft", arguments: new QueryArguments( new QueryArgument <NonNullGraphType <AircraftInputType> > { Name = "aircraft" } ), resolve: context => { var aircraft = context.GetArgument <Aircraft>("aircraft"); return(aircraftRepository.Add(aircraft)); }); }
public AircraftQuery(IAircraftRepository aircraftRepository) { _aircraftRepository = aircraftRepository; }
public GetAllAircraftHandler(IAircraftRepository aircraftRepository) { _aircraftRepository = aircraftRepository; }
public Application(IPositionRepository positionRepository, IAircraftRepository aircraftRepository, IConflictRepository conflictRepository) { _positionRepository = positionRepository; _aircraftRepository = aircraftRepository; _conflictRepository = conflictRepository; }
public AirplaneCrudService(IAircraftRepository <Airplane> aircraftRepository, IUnitOfWork unitOfWork, IAirportRepository airportRepository) : base(aircraftRepository, unitOfWork, airportRepository) { }
public AverageUtilizationRepository(IAircraftRepository aircraftRepository, IComponentRepository componentRepository) { _aircraftRepository = aircraftRepository; _componentRepository = componentRepository; }
public AircraftManagerService(IClubRepository clubRepository, IAircraftRepository aircraftRepository, IAsyncRepository <AircraftPrice> asyncRepositoryAircraftPrice) { this.clubRepository = clubRepository; this.aircraftRepository = aircraftRepository; this.asyncRepositoryAircraftPrice = asyncRepositoryAircraftPrice; }
public AircraftService(ILogger <AircraftService> logger, IAircraftRepository aircraftRepository) { _logger = logger; _aircraftRepository = aircraftRepository; }
public HomeController(IAircraftRepository aircraftRepository, DatabaseContext db) { _aircraftRepository = aircraftRepository; _db = db; }
public FlightController(IFlightRepository flightRepository, IAircraftRepository aircraftRepository) { this.flightRepository = flightRepository; this.aircraftRepository = aircraftRepository; }
//private readonly AppDbContext _context; public HomeController(IAircraftRepository ACRepository) { _ACRepository = ACRepository; }
//TODO: Figure out why not executing quickly public HandlePosition(IPositionRepository positionRepository, IAircraftRepository aircraftRepository, IConflictRepository conflictRepository) { _positionRepository = positionRepository; _aircraftRepository = aircraftRepository; _conflictRepository = conflictRepository; }
public AircraftService(IAircraftRepository repository, IMapper mapper) { _aircraftRepository = repository; _mapper = mapper; }
public WorkPackageRepository(IAircraftRepository aircraftRepository, IComponentRepository componentRepository, DatabaseContext db) { _aircraftRepository = aircraftRepository; _componentRepository = componentRepository; _db = db; }
public AircraftsController(IAircraftRepository aircraftRepository) { _aircraftRepository = aircraftRepository; }
public AircraftController(IAircraftRepository aircraftRepository) { this.aircraftRepository = aircraftRepository; }
public ConfigurationModel() { _upgradeRepository = SimpleIoc.Default.GetInstance<IUpgradeRepository>(); _aircraftRepository = SimpleIoc.Default.GetInstance<IAircraftRepository>(); }
public AircraftWorker(ILogger <AircraftWorker> logger, DatabaseContext db, IAircraftRepository aircraftRepository) { _logger = logger; _db = db; _aircraftRepository = aircraftRepository; }
public TransferableConverter() { _upgradeRepository = SimpleIoc.Default.GetInstance<IUpgradeRepository>(); _aircraftRepository = SimpleIoc.Default.GetInstance<IAircraftRepository>(); }
public FleetTransferService(IAirlinesRepository airlinesRepository, IAircraftRepository aircraftRepository, IApprovalDocRepository approvalDocRepository, IDocumentRepository documentRepository, IMailAddressRepository mailAddressRepository, IPlanRepository planRepository, IPlanAircraftRepository planAircraftRepository, IPlanHistoryRepository planHistoryRepository, IRequestRepository requestRepository) { _airlinesRepository = airlinesRepository; _aircraftRepository = aircraftRepository; _approvalDocRepository = approvalDocRepository; _documentRepository = documentRepository; _mailAddressRepository = mailAddressRepository; _planRepository = planRepository; _planAircraftRepository = planAircraftRepository; _planHistoryRepository = planHistoryRepository; _requestRepository = requestRepository; }
public GliderCrudService(IAircraftRepository <Glider> aircraftRepository, IUnitOfWork unitOfWork, IAirportRepository airportRepository) : base(aircraftRepository, unitOfWork, airportRepository) { }
public AircraftAppService(IAircraftQuery aircraftQuery, IAircraftRepository aircraftRepository) { _aircraftQuery = aircraftQuery; _aircraftRepository = aircraftRepository; }
public AircraftAddedToFleetHandler(IAircraftRepository aircraftRepository) { _aircraftRepository = aircraftRepository; }
public AircraftController(IAircraftRepository aircraftRepository, IComponentRepository componentRepository, DatabaseContext db) { _aircraftRepository = aircraftRepository; _componentRepository = componentRepository; _db = db; }
public AircraftService(IAircraftRepository <T> aircraftRepository, IUnitOfWork unitOfWork, IAirportRepository airportRepository) { _aircraftRepository = aircraftRepository; _unitOfWork = unitOfWork; _airportRepository = airportRepository; }
public FlightRepository(IAircraftRepository aircraftRepository, IAirportRepository airportRepository) { this.xmlHelper = new XmlRepositoryHelper <PersistenceFlight>(@"SampleData\Flights.xml"); this.aircraftRepository = aircraftRepository; this.airportRepository = airportRepository; }
public AircraftListViewComponent(IAircraftRepository aircraftRepository) { _aircraftRepository = aircraftRepository; }