Ejemplo n.º 1
0
 public AdminController(IUnitOfWork unitOfWork, IServiceTicket ticketService, IOrderService orderService, IServiceFlight serviceFlight, IServiceUser serviceUser) : base()
 {
     _ticketService = ticketService;
     _orderService  = orderService;
     _flightService = serviceFlight;
     _serviceUser   = serviceUser;
     _unitOfWork    = unitOfWork;
 }
Ejemplo n.º 2
0
        public FlightServiceTest()
        {
            mapper                      = new Mock <IMapper>();
            unitOfWork                  = new TicketsBookingUnitOfWork(null);
            flightMockRepository        = new Mock <IRepository <Flight> >();
            unitOfWork.FlightRepository = flightMockRepository.Object;
            flightService               = new FlightService(unitOfWork, mapper.Object);

            Initialize();
        }