Ejemplo n.º 1
0
 public ResourceService(
     IMapper mapper,
     IAuditTrailLogService auditTrailLogService,
     ILogger <ResourceService> logger,
     IResourceRepository resourceRepository,
     IResourceLinkingService resourceLinkingService,
     IResourcePreprocessService resourceResourcePreprocessService,
     IHistoricResourceService historyResourceService,
     IMetadataService metadataService,
     IIdentifierService identifierService,
     IUserInfoService userInfoService,
     IReindexingService ReindexingService,
     IRemoteAppDataService remoteAppDataService,
     IValidationService validationService,
     ILockServiceFactory lockServiceFactory)
 {
     _mapper = mapper;
     _auditTrailLogService = auditTrailLogService;
     _logger                    = logger;
     _resourceRepository        = resourceRepository;
     _resourceLinkingService    = resourceLinkingService;
     _resourcePreprocessService = resourceResourcePreprocessService;
     _historyResourceService    = historyResourceService;
     _metadataService           = metadataService;
     _identifierService         = identifierService;
     _userInfoService           = userInfoService;
     _indexingService           = ReindexingService;
     _remoteAppDataService      = remoteAppDataService;
     _validationService         = validationService;
     _lockServiceFactory        = lockServiceFactory;
 }
 public ImportService(
     IMetadataService metadataService,
     IMapper mapper,
     IAWSSQSHelper awsSQSHelper,
     IResourcePreprocessService resourcePreprocessService,
     IResourceService resourceService,
     ILogger <ImportService> logger,
     IResourceRepository resourceRepository,
     IRevisionService revisionService,
     IValidationService validationService,
     IIdentifierService identifierService,
     IReindexingService indexingService,
     IRemoteAppDataService remoteAppDataService,
     IProxyConfigService proxyConfigService)
 {
     _metadataService           = metadataService;
     _resourcePreprocessService = resourcePreprocessService;
     _awsSQSHelper         = awsSQSHelper;
     _logger               = logger;
     _resourceService      = resourceService;
     _resourceRepository   = resourceRepository;
     _revisionService      = revisionService;
     _validationService    = validationService;
     _identifierService    = identifierService;
     _indexingService      = indexingService;
     _remoteAppDataService = remoteAppDataService;
     _proxyConfigService   = proxyConfigService;
 }
Ejemplo n.º 3
0
 public PartyService()
 {
     PartyRepository    = new PartyRepository();
     UserRepository     = new UserRepository();
     SupplierRepository = new SupplierRepository();
     SupplierService    = new SupplierService();
     IdentifierService  = new IdentifierService();
 }
 public DataService(IPersistenceService persistenceService,
                    IIdentifierService identifierService,
                    INotificationService notificationService)
 {
     this.notificationService = notificationService;
     this.persistenceService  = persistenceService;
     this.identifierService   = identifierService;
 }
Ejemplo n.º 5
0
 public IdentifierController(IIdentifierService identifierService,
                             FactoryCategoryGeneratedIdentifiersQuery factoryCategoryGeneratedIdentifiersQuery,
                             AllIdentifierQuery allIdentifierQuery)
 {
     _identifierService = identifierService;
     _factoryCategoryGeneratedIdentifiersQuery = factoryCategoryGeneratedIdentifiersQuery;
     _allIdentifierQuery = allIdentifierQuery;
 }
Ejemplo n.º 6
0
 public GenerateUserCodeCommandHandler(
     ISheaftMediatr mediatr,
     IAppDbContext context,
     IIdentifierService identifierService,
     ILogger <GenerateUserCodeCommandHandler> logger)
     : base(mediatr, context, logger)
 {
     _identifierService = identifierService;
 }
Ejemplo n.º 7
0
 public CompletePurchaseOrderCommandHandler(
     IAppDbContext context,
     ISheaftMediatr mediatr,
     IIdentifierService identifierService,
     ILogger <CompletePurchaseOrderCommandHandler> logger)
     : base(mediatr, context, logger)
 {
     _identifierService = identifierService;
 }
Ejemplo n.º 8
0
 public UpdateDeliveryBatchCommandHandler(
     ISheaftMediatr mediatr,
     IAppDbContext context,
     IIdentifierService identifierService,
     ILogger <UpdateDeliveryBatchCommandHandler> logger)
     : base(mediatr, context, logger)
 {
     _identifierService = identifierService;
 }
 protected void SetupServices()
 {
     FileProcessor        = new Mock <IFileProcessor>();
     TransactionsImporter = new Mock <ITransactionsImporter>();
     PersistenceService   = new ExcelPersistenceService(FileProcessor.Object);
     NotificationService  = new NotificationService();
     IdentifierService    = new IdentifierService();
     DataService          = new DataService(PersistenceService, IdentifierService, NotificationService);
 }
Ejemplo n.º 10
0
 public CreateProductCommandHandler(
     ISheaftMediatr mediatr,
     IAppDbContext context,
     IPictureService imageService,
     IIdentifierService identifierService,
     ILogger <CreateProductCommandHandler> logger)
     : base(mediatr, context, logger)
 {
     _imageService      = imageService;
     _identifierService = identifierService;
 }
Ejemplo n.º 11
0
        public static GameEntity WithNewGeneralId(this GameEntity entity, IIdentifierService identifiers)
        {
            if (entity.hasId)
            {
                return(entity);
            }

            entity.AddId(identifiers.Next(Identity.General));

            return(entity);
        }
Ejemplo n.º 12
0
 public CreatePurchaseOrderFromOrderCommandHandler(
     IAppDbContext context,
     ISheaftMediatr mediatr,
     IIdentifierService identifierService,
     ITableService tableService,
     IOptionsSnapshot <RoleOptions> roles,
     ILogger <CreatePurchaseOrderFromOrderCommandHandler> logger)
     : base(mediatr, context, logger)
 {
     _identifierService = identifierService;
     _tableService      = tableService;
     _roles             = roles.Value;
 }
Ejemplo n.º 13
0
 public CreateBusinessOrderCommandHandler(
     IAppDbContext context,
     ISheaftMediatr mediatr,
     IDeliveryService deliveryService,
     IIdentifierService identifierService,
     IOptionsSnapshot <PspOptions> pspOptions,
     ILogger <CreateBusinessOrderCommandHandler> logger)
     : base(mediatr, context, logger)
 {
     _deliveryService   = deliveryService;
     _identifierService = identifierService;
     _pspOptions        = pspOptions.Value;
 }
Ejemplo n.º 14
0
 public CreateEntityController(
     IDatabaseEntityRepository databaseEntityRepository,
     IOptionsService optionsService,
     ISqlComparerService sqlComparerService,
     IIdentifierService identifierService,
     ILogger <CreateEntityController> logger)
 {
     _databaseEntityRepository = databaseEntityRepository;
     _optionsService           = optionsService;
     _sqlComparerService       = sqlComparerService;
     _identifierService        = identifierService;
     _logger = logger;
 }
Ejemplo n.º 15
0
        public MainForm(SessionContext sessionContext)
        {
            _sessionContext = sessionContext ?? throw new ArgumentNullException(nameof(sessionContext));
            InitializeComponent();

            _identifierService = _sessionContext.UnityContainer.Resolve <IIdentifierService>();
            _formattingService = _sessionContext.UnityContainer.Resolve <IFormattingService>();

            BuildTitle();
            UpdateComboBox();
            BuildMainMenu();
            BuildScreens();

            removeIdentifierButton.Enabled = false;
        }
Ejemplo n.º 16
0
 /// <summary>
 /// Constructer to initialize
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="awsSQSHelper"></param>
 /// <param name="resourcePreprocessService"></param>
 /// <param name="resourceService"></param>
 /// <param name="resourceRepository"></param>
 public BulkProcessBackgroundService(ILogger <BulkProcessBackgroundService> logger, IAWSSQSHelper awsSQSHelper,
                                     IResourcePreprocessService resourcePreprocessService, IResourceService resourceService,
                                     IResourceRepository resourceRepository, IRevisionService revisionService, IMetadataService metadataService,
                                     IValidationService validationService, IIdentifierService identifierService, IReindexingService indexingService,
                                     IProxyConfigService proxyConfigService)
 {
     _logger       = logger;
     _awsSQSHelper = awsSQSHelper;
     _resourcePreprocessService = resourcePreprocessService;
     _resourceService           = resourceService;
     _resourceRepository        = resourceRepository;
     _revisionService           = revisionService;
     _metadataService           = metadataService;
     _validationService         = validationService;
     _identifierService         = identifierService;
     _indexingService           = indexingService;
     _proxyConfigService        = proxyConfigService;
 }
Ejemplo n.º 17
0
 public PrintIdentifiers(IIdentifierService service) =>
 this.service = service ?? throw new ArgumentNullException(nameof(service));
Ejemplo n.º 18
0
 /// <summary>
 /// API endpoint for distribtuion endpoints.
 /// </summary>
 /// <param name="identifierValidationService">The service for identifier validation</param>
 /// <param name="identifierService"></param>
 public IdentifierController(IIdentifierValidationService identifierValidationService, IIdentifierService identifierService)
 {
     _identifierValidationService = identifierValidationService;
     _identifierService           = identifierService;
 }
 public void SetUp()
 {
     _itemsRepository   = Substitute.For <IItemsRepository>();
     _identifierService = Substitute.For <IIdentifierService>();
     _itemsService      = new ItemsService(_itemsRepository, _identifierService);
 }
 public IdentifierValidationService(IMetadataService metadataService, IIdentifierService identifierService, IResourceRepository resourceRepository)
 {
     _metadataService    = metadataService;
     _identifierService  = identifierService;
     _resourceRepository = resourceRepository;
 }
 public void Construct(IGameContext context, IRegisterService <IViewController <GameEntity> > collidingViewRegister,
                       IIdentifierService identifierService)
 {
     _collidingViewRegister = collidingViewRegister;
     _identifierService     = identifierService;
 }
Ejemplo n.º 22
0
 public IdentifiersController(
     IMapper mapper,
     IIdentifierService identifierService) : base(mapper)
 {
     _identifierService = identifierService;
 }
 public ItemsService(IItemsRepository itemsRepository, IIdentifierService identifierService)
 {
     _itemsRepository   = itemsRepository;
     _identifierService = identifierService;
 }