public AdminController(IUnitOfWork unitOfWork, IServiceTicket ticketService, IOrderService orderService, IServiceFlight serviceFlight, IServiceUser serviceUser) : base() { _ticketService = ticketService; _orderService = orderService; _flightService = serviceFlight; _serviceUser = serviceUser; _unitOfWork = unitOfWork; }
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(); }