Example #1
0
 public PassengerService(IAirplaneService airplane, IPassengerRepository repository, IUnitOfWork unitOfWork
                         , IValidator <Passenger> validator, IValidator <PassengerToAirPlane> passengerToAirPlaneValidador)
     : base(repository, unitOfWork, validator)
 {
     _airplane = airplane;
     _passengerToAirPlaneValidador = passengerToAirPlaneValidador;
 }
 public AirplaneController(INotification notifier,
                           IAirplaneService dbAirplane,
                           IMapper mapper) : base(notifier)
 {
     _dbAirplane = dbAirplane;
     _mapper     = mapper;
 }
Example #3
0
 public VacationPartFactory(IHotelService hotelService, IHotelSelector hotelSelector,
                            IAirplaneService airplaneService)
 {
     this.hotelService    = hotelService;
     this.hotelSelector   = hotelSelector;
     this.airplaneService = airplaneService;
 }
 public AirplaneController(
     IAirplaneService airplaneService,
     ILogger <AirplaneController> logger
     )
 {
     _airplaneService = airplaneService;
     _logger          = logger;
 }
Example #5
0
 public AirplaneServiceTest()
 {
     _terminal           = new Terminal();
     _airplane           = new Airplane();
     _smartForTwo        = new SmartForTwo();
     _smartForTwoService = Substitute.For <ISmartForTwoService>();
     _airplaneService    = new AirplaneService(_terminal, _airplane, _smartForTwoService, _smartForTwo);
 }
 public AirplaneController(
     IDomainNotificationHandler <DomainNotification> notifications,
     IBus bus,
     IMapper mapper,
     IAirplaneService airplaneService) : base(notifications, bus)
 {
     _mapper          = mapper;
     _airplaneService = airplaneService;
 }
 public VacationPartFactory(
     IHotelSelector hotelSelector,
     IHotelService hotelService,
     IAirplaneService airplaneService
     )
 {
     _hotelSelector   = hotelSelector;
     _hotelService    = hotelService;
     _airplaneService = airplaneService;
 }
Example #8
0
 public AirplanesController(
     IMapper mapper,
     IAirplaneService airplaneService,
     IPaginationSettings paginationSettings
     )
 {
     _mapper             = mapper;
     _airplaneService    = airplaneService;
     _paginationSettings = paginationSettings;
 }
 public WindowsUserDialogService(IRouteService routeService, IFlightService flightService,
                                 IAirplaneService airplaneService, IAirportService airportService, IPassengerService passengerService,
                                 ITicketService ticketService, ICarrierService carrierService)
 {
     _routeService     = routeService;
     _flightService    = flightService;
     _airplaneService  = airplaneService;
     _airportService   = airportService;
     _passengerService = passengerService;
     _ticketService    = ticketService;
     _carrierService   = carrierService;
 }
Example #10
0
        public VacationSpecificationBuilder(IHotelService hotelService,
                                            IHotelSelector hotelSelector,
                                            IAirplaneService airplaneService,
                                            DateTime arrivalDate, int totalNights,
                                            string livingTown, string destinationTown)
        {
            this.hotelService    = hotelService;
            this.hotelSelector   = hotelSelector;
            this.airplaneService = airplaneService;

            this.arrivalDate = arrivalDate;
            this.totalNights = totalNights;

            this.livingTown      = livingTown;
            this.destinationTown = destinationTown;
        }
Example #11
0
 public StationManager()
 {
     AService = new AirplaneService();
     AllFlightsArchiveInAirport = new List <FlightsArchive>();
     repository        = new DBRepository();
     ListOfAllStations = repository.GetAllStations().OrderBy(s => s.Id).ToList();
     foreach (var station in ListOfAllStations)
     {
         station.PlaneFinished = (plane, stationnn) =>
         {
             SendAirplaneToArchiveList(plane, stationnn);
             UpdateStations();
         };
         station.StationUpdated = UpdateStations;
         var t = station.StartWorking();
     }
     UpdateStations();
 }
Example #12
0
        public AirplaneServiceTests()
        {
            MapperConfiguration mappingConfig = new MapperConfiguration(config =>
            {
                config.CreateMap <Airplane, AirplaneEntity>();
                config.CreateMap <AirplaneEntity, Airplane>();
                config.CreateMap <AirplaneSeat, AirplaneSeatEntity>();
                config.CreateMap <AirplaneSeatEntity, AirplaneSeatType>();
                config.CreateMap <AirplaneSeatType, AirplaneSeatTypeEntity>();
                config.CreateMap <AirplaneSeatTypeEntity, AirplaneSeatType>();
            });

            mappingConfig.CompileMappings();

            IMapper mapper = mappingConfig.CreateMapper();

            _airplaneService = new AirplaneService(mapper, new AirplanesRepositoryMock());
        }
 public AirplanesController(IAirplaneService airPlaneService)
 {
     this.airPlaneService = airPlaneService;
 }
Example #14
0
 public AirplanesController(IAirplaneService service)
 {
     this.service = service;
 }
 public AirplaneAppService(IUnitOfWork unitOfWork, IMapper mapper, IAirplaneService airplaneService)
 {
     _unitOfWork      = unitOfWork;
     _mapper          = mapper;
     _airplaneService = airplaneService;
 }
Example #16
0
 public AirplaneController(IAirplaneService airplaneService, IMapper mapper)
 {
     _airplaneService = airplaneService;
     _mapper          = mapper;
 }
 public AirplaneController(IAirplaneService service, IAirlineAdminService adminService)
 {
     this.service      = service;
     this.adminService = adminService;
 }
 public AirplaneController(IAirplaneService airplanes)
 {
     this.airplanes = airplanes;
 }
 public AirplaneController(IAirplaneService srv)
 {
     _service = srv;
 }
Example #20
0
 public AirplaneController(IAirplaneService service)
 {
     _service = service;
 }
 public AirplanesController(IAirplaneService airplaneService)
 {
     AirplaneService = airplaneService ??
                       throw new ArgumentNullException(nameof(airplaneService));
 }
Example #22
0
 public AirplanesController(IAirplaneService serv)
 {
     service = serv;
 }
 public AirplaneControllerTest()
 {
     _service    = new AirplaneServiceFake();
     _controller = new AirplaneController(_service);
 }
 public AirplaneController(IAirplaneService airplaneService)
 {
     _airplaneService = airplaneService;
 }
Example #25
0
 public AirplaneTest(IAirplaneService airplaneService)
 {
     _airplaneService = airplaneService;
 }