/// <summary> /// Initializes a new instance of the <see cref="CrewData" /> class. /// </summary> /// <param name="crewRepository">The crew member repository.</param> /// <param name="referenceDataRepository">The reference data repository.</param> /// <param name="personStatusRepository">The person status repository.</param> /// <param name="shipRepository">The ship repository.</param> /// <param name="shipTimeRepository">The ship time repository.</param> public CrewData(ICrewRepository crewRepository, IReferenceDataRepository referenceDataRepository, IPersonStatusRepository personStatusRepository, IShipRepository shipRepository, IShipTimeRepository shipTimeRepository) { this.crewRepository = crewRepository; this.referenceDataRepository = referenceDataRepository; this.personStatusRepository = personStatusRepository; this.shipRepository = shipRepository; this.shipTimeRepository = shipTimeRepository; }
public InvoiceRepository(IEventSourcingRepository <Invoice, InvoiceId> eventRepo, ICustomerRepository customerRepository, IShipServiceRepository shipServiceRepository, IShipRepository shipRepository, IRentalRepository rentalRepository) { _eventRepository = eventRepo; _customerRepository = customerRepository; _shipServiceRepository = shipServiceRepository; _shipRepository = shipRepository; _rentalRepository = rentalRepository; }
/// <summary> /// Initializes a new instance of the <see cref="GuestData" /> class. /// </summary> /// <param name="guestRepository">The guest repository.</param> /// <param name="shipRepository">The ship repository.</param> /// <param name="applicationSettings">The application settings.</param> /// <param name="referenceDataRepository">The reference data repository.</param> /// <param name="personStatusRepository">The person status repository.</param> /// <param name="shipTimeRepository">The ship time repository.</param> public GuestData(IGuestRepository guestRepository, IShipRepository shipRepository, IApplicationSettings applicationSettings, IReferenceDataRepository referenceDataRepository, IPersonStatusRepository personStatusRepository, IShipTimeRepository shipTimeRepository) { this.guestRepository = guestRepository; this.shipRepository = shipRepository; this.referenceDataRepository = referenceDataRepository; this.personStatusRepository = personStatusRepository; this.applicationSettings = applicationSettings; this.shipTimeRepository = shipTimeRepository; }
public ShipService(IShipRepository repository) { if (repository == null) { throw new ArgumentNullException("repository"); } _Repository = repository; }
public ShipsController( IUrlHelper urlHelper, IShipRepository shipRepository, IMapper mapper) { _shipRepository = shipRepository; _mapper = mapper; _urlHelper = urlHelper; }
public ShipService(ILogger <ShipService> logger, IShipRepository shipRepository) { _logger = logger; _shipRepository = shipRepository; _shipRepository.AddShip(new Ship { ShipId = 1, ShipName = "Test Ship", ShipSpeed = 1.0 }); }
public ContainerMessageHandler(IShipRepository shipRepository, IContainerRepository containerRepository, ITruckRepository truckRepository, IMessagePublisher messagePublisher) { _shipRepository = shipRepository; _containerRepository = containerRepository; _truckRepository = truckRepository; _messagePublisher = messagePublisher; }
/// <summary> /// Initializes a new instance of the <see cref="PersonAlertData"/> class. /// </summary> /// <param name="applicationSettings">The application settings.</param> /// <param name="alertRepository">The alert repository.</param> /// <param name="shipRepository">The ship repository.</param> /// <param name="guestRepository">The guest repository.</param> /// <param name="shipTimeRepository">The ship time repository.</param> /// <param name="crewRepository">The crew repository.</param> /// <param name="visitorRepository">The visitor repository.</param> public PersonAlertData(IApplicationSettings applicationSettings, IAlertRepository alertRepository, IShipRepository shipRepository, IGuestRepository guestRepository, IShipTimeRepository shipTimeRepository, ICrewRepository crewRepository, IVisitorRepository visitorRepository) { this.applicationSettings = applicationSettings; this.alertClientRepository = alertRepository; this.shipRepository = shipRepository; this.guestRepository = guestRepository; this.shipTimeRepository = shipTimeRepository; this.crewClientRepository = crewRepository; this.visitorClientRepository = visitorRepository; }
public GameController(string dbName) { _shipPieceRepo = new ShipPieceRepository(dbName); _shipRepo = new ShipRepository(dbName); _playerRepo = new PlayerRepository(dbName); _stateRepo = new StateRepository(dbName); PreloadData(); CurrentState = StateEnum.Player1Name; }
/// <summary> /// Initializes a new instance of the <see cref="MasterDataRepository" /> class. /// </summary> /// <param name="referenceRepository">The reference repository.</param> /// <param name="crewRepository">The crew repository.</param> /// <param name="shipTimeRepository">The ship time repository.</param> /// <param name="shipRepository">The ship repository.</param> /// <param name="voyageRepository">The voyage repository.</param> /// <param name="visitorRepository">The visitor repository.</param> /// <param name="applicationSettings">The application settings.</param> /// <param name="alertRepository">The alert repository.</param> public MasterDataRepository(IReferenceDataRepository referenceRepository, ICrewRepository crewRepository, IShipTimeRepository shipTimeRepository, IShipRepository shipRepository, IVoyageRepository voyageRepository, IVisitorRepository visitorRepository, IApplicationSettings applicationSettings, IAlertRepository alertRepository) { this.crewRepository = crewRepository; this.referenceDataRepository = referenceRepository; this.shipTimeRepository = shipTimeRepository; this.shipRepository = shipRepository; this.voyageRepository = voyageRepository; this.visitorRepository = visitorRepository; this.applicationSettings = applicationSettings; this.alertRepository = alertRepository; }
public CertificateController(IEventAggregator eventAggregator, IBlockChainRepository blockChainRepo, ICustomerRepository customerRepo, IShipRepository shipRepo, IHostingEnvironment env) { this.EventAggregator = eventAggregator; this.BlockChainRepo = blockChainRepo; this.ShipRepo = shipRepo; this.CustomerRepo = customerRepo; this.Env = env; }
public InvoiceMessageHandler(IInvoiceRepository invoiceRepository, ICustomerRepository customerRepository, IShipRepository shipRepository, IShipServiceRepository shipServiceRepository, IRentalRepository rentalRepository, IMessagePublisher messagePublisher) { _invoiceRepository = invoiceRepository; _customerRepository = customerRepository; _shipRepository = shipRepository; _shipServiceRepository = shipServiceRepository; _rentalRepository = rentalRepository; _messagePublisher = messagePublisher; }
public ShipService(IDbContextScopeFactory dbContextScopeFactory, IShipRepository shipRepository) { this.dbContextScopeFactory = dbContextScopeFactory; this.shipRepository = shipRepository; }
public CruiseLinesController(ICruiseRepository <CruiseLine> cruiseRepository, IShipRepository shipRepository) { _cruiseRepository = cruiseRepository; _shipRepository = shipRepository; }
/// <summary> /// Initializes a new instance of the <see cref="ShipManager" /> class. /// </summary> /// <param name="shipRepository">The ship repository.</param> public ShipManager(IShipRepository shipRepository) { this.shipRepository = shipRepository; }
public ShiperOrderEventHandler(IShipRepository shipRepository) { _shipRepository = shipRepository; }
public HomeController(IShipRepository shipRepository) { _shipRepository = shipRepository; }
public ElectricityService(IShipRepository shipRepository, IEventPublisher eventPublisher) { _shipRepository = shipRepository; _eventPublisher = eventPublisher; }
/// <summary> /// Initializes a new instance of the <see cref="AlertData" /> class. /// </summary> /// <param name="alertRepository">The alert repository.</param> /// <param name="visitorRepository">The visitor repository.</param> /// <param name="guestRepository">The guest repository.</param> /// <param name="crewRepository">The crew repository.</param> /// <param name="shipRepository">The ship repository.</param> /// <param name="shipTimeRepository">The ship time repository.</param> /// <param name="applicationSettings">The application settings.</param> /// <param name="embarkationStatisticsRepository">The embarkation statistics repository.</param> public AlertData(IAlertRepository alertRepository, IVisitorRepository visitorRepository, IGuestRepository guestRepository, ICrewRepository crewRepository, IShipRepository shipRepository, IShipTimeRepository shipTimeRepository, IApplicationSettings applicationSettings, IEmbarkationStatisticsRepository embarkationStatisticsRepository) { this.alertRepository = alertRepository; this.visitorRepository = visitorRepository; this.guestRepository = guestRepository; this.crewRepository = crewRepository; this.shipRepository = shipRepository; this.applicationSettings = applicationSettings; this.shipTimeRepository = shipTimeRepository; this.embarkationStatisticsRepository = embarkationStatisticsRepository; }
/// <summary> /// Initializes a new instance of the <see cref="PortManningData" /> class. /// </summary> /// <param name="shipRepository">The ship repository.</param> /// <param name="crewRepository">The crew repository.</param> public PortManningData(IShipRepository shipRepository, ICrewRepository crewRepository) { this.shipRepository = shipRepository; this.crewRepository = crewRepository; }
public DockService(IShipRepository shipRepository, IEventPublisher eventPublisher) { _shipRepository = shipRepository; _eventPublisher = eventPublisher; }
public ShipsController(IShipRepository repo, IHttpContextAccessor httpContext, IMapper mapper) { this.httpContext = httpContext; this.mapper = mapper; this.repo = repo; }