Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 public InvoiceRepository(IEventSourcingRepository <Invoice, InvoiceId> eventRepo, ICustomerRepository customerRepository, IShipServiceRepository shipServiceRepository, IShipRepository shipRepository, IRentalRepository rentalRepository)
 {
     _eventRepository       = eventRepo;
     _customerRepository    = customerRepository;
     _shipServiceRepository = shipServiceRepository;
     _shipRepository        = shipRepository;
     _rentalRepository      = rentalRepository;
 }
Ejemplo n.º 3
0
 /// <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;
 }
Ejemplo n.º 4
0
        public ShipService(IShipRepository repository)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository");
            }

            _Repository = repository;
        }
Ejemplo n.º 5
0
 public ShipsController(
     IUrlHelper urlHelper,
     IShipRepository shipRepository,
     IMapper mapper)
 {
     _shipRepository = shipRepository;
     _mapper         = mapper;
     _urlHelper      = urlHelper;
 }
Ejemplo n.º 6
0
 public ShipService(ILogger <ShipService> logger, IShipRepository shipRepository)
 {
     _logger         = logger;
     _shipRepository = shipRepository;
     _shipRepository.AddShip(new Ship {
         ShipId    = 1,
         ShipName  = "Test Ship",
         ShipSpeed = 1.0
     });
 }
Ejemplo n.º 7
0
 public ContainerMessageHandler(IShipRepository shipRepository,
                                IContainerRepository containerRepository,
                                ITruckRepository truckRepository,
                                IMessagePublisher messagePublisher)
 {
     _shipRepository      = shipRepository;
     _containerRepository = containerRepository;
     _truckRepository     = truckRepository;
     _messagePublisher    = messagePublisher;
 }
Ejemplo n.º 8
0
 /// <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;
 }
Ejemplo n.º 9
0
        public GameController(string dbName)
        {
            _shipPieceRepo = new ShipPieceRepository(dbName);
            _shipRepo      = new ShipRepository(dbName);
            _playerRepo    = new PlayerRepository(dbName);
            _stateRepo     = new StateRepository(dbName);

            PreloadData();

            CurrentState = StateEnum.Player1Name;
        }
Ejemplo n.º 10
0
 /// <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;
 }
Ejemplo n.º 12
0
 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;
 }
Ejemplo n.º 13
0
 public ShipService(IDbContextScopeFactory dbContextScopeFactory, IShipRepository shipRepository)
 {
     this.dbContextScopeFactory = dbContextScopeFactory;
     this.shipRepository        = shipRepository;
 }
Ejemplo n.º 14
0
 public CruiseLinesController(ICruiseRepository <CruiseLine> cruiseRepository,
                              IShipRepository shipRepository)
 {
     _cruiseRepository = cruiseRepository;
     _shipRepository   = shipRepository;
 }
Ejemplo n.º 15
0
 /// <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;
 }
Ejemplo n.º 18
0
 public ElectricityService(IShipRepository shipRepository, IEventPublisher eventPublisher)
 {
     _shipRepository = shipRepository;
     _eventPublisher = eventPublisher;
 }
Ejemplo n.º 19
0
 /// <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;
 }
Ejemplo n.º 20
0
 /// <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;
 }
Ejemplo n.º 21
0
 public DockService(IShipRepository shipRepository, IEventPublisher eventPublisher)
 {
     _shipRepository = shipRepository;
     _eventPublisher = eventPublisher;
 }
Ejemplo n.º 22
0
 public ShipsController(IShipRepository repo, IHttpContextAccessor httpContext, IMapper mapper)
 {
     this.httpContext = httpContext;
     this.mapper      = mapper;
     this.repo        = repo;
 }