public CreateTripHandler(ITripRepository tripRepository, ICustomerRepository customerRepository, IUnitOfWork unitOfWork, ITripFactory tripFactory) { _tripRepository = tripRepository; _customerRepository = customerRepository; _unitOfWork = unitOfWork; _tripFactory = tripFactory; }
public AirportController(IAirport airport) { this.airport = airport; this.airplaneFactory = new AirplaneFactory(); this.itemFactory = new ItemFactory(); this.passengerFactory = new PassengerFactory(); this.tripFactory = new TripFactory(); }
public UnitTripServiceFactory(IEventRepository eventRepository, ITripFactory tripFactory, IEnumerable <ITripProcessor> tripProcessors) { _eventRepository = eventRepository; _tripFactory = tripFactory; _tripProcessors = tripProcessors; }
public UnitTripService(int unitId, IEventRepository eventRepository, ITripFactory tripFactory, IEnumerable <ITripProcessor> tripProcessors) { _unitId = unitId; _eventRepository = eventRepository; _tripFactory = tripFactory; _tripProcessors = tripProcessors; // Set state to finished, ie not in progress _tripState = new TripStateFinished(_tripFactory); _trips = new List <TripModel>(); }
public TripController( IPermissionService permissionService, ITripFactory tripFactory, ITripService tripService, ICustomerActivityService customerActivityService, ILocalizationService localizationService, IImportManager importManager, IConsignmentOrderFactory consignmentOrderFactory, IExportManager exportManager) { this.permissionService = permissionService; this.tripFactory = tripFactory; this.tripService = tripService; this.customerActivityService = customerActivityService; this.localizationService = localizationService; this.importManager = importManager; this.consignmentOrderFactory = consignmentOrderFactory; this.exportManager = exportManager; }
public TripStateFinished(ITripFactory tripFactory) { _tripFactory = tripFactory; }
public TripStateStarted(ITripFactory tripFactory, IEnumerable <ITripProcessor> tripProcessors) { _tripFactory = tripFactory; _tripProcessors = tripProcessors; }