Ejemplo n.º 1
0
        public UnitOfWork(ICrewRepository crewRepository,
                          IFlightRepository flightRepository,
                          IPilotRepository pilotRepository,
                          IPlaneRepository planeRepository,
                          IPlaneTypeRepository planeTypeRepository,
                          IStewardessRepository stewardessRepository,
                          ITakeOffRepository takeOffRepository,
                          ITicketRepository ticketRepository,
                          MyContext context)
        {
            this.crewRepository       = crewRepository;
            this.flightRepository     = flightRepository;
            this.pilotRepository      = pilotRepository;
            this.planeRepository      = planeRepository;
            this.planeTypeRepository  = planeTypeRepository;
            this.stewardessRepository = stewardessRepository;
            this.takeOffRepository    = takeOffRepository;
            this.ticketRepository     = ticketRepository;

            this.context = context;
        }
Ejemplo n.º 2
0
 public TakeOffService(ITakeOffRepository takeOffRepo)
 {
     this.takeOffRepo = takeOffRepo;
 }