Exemplo n.º 1
0
 public GlobalXSyncOrgsQueryHandler(
     WCADbContext wCADbContext,
     Validator validator)
 {
     _validator    = validator;
     _wCADbContext = wCADbContext;
 }
Exemplo n.º 2
0
 public Handler(
     IOptions <WCACoreSettings> appSettings,
     WCADbContext wCADbContext)
 {
     _appSettings  = appSettings;
     _wCADbContext = wCADbContext;
 }
 public SetLatestGlobalXTransactionIdCommandHandler(
     WCADbContext wCADbContext,
     Validator validator)
 {
     _validator    = validator;
     _wCADbContext = wCADbContext;
 }
 public StorePexaWorkspaceInfoIntoDBCommandHandler(
     StorePexaWorkspaceInfoIntoDBCommand.ValidatorCollection validator,
     WCADbContext wCADbContext)
 {
     _validator    = validator;
     _wCADbContext = wCADbContext;
 }
Exemplo n.º 5
0
 public GetPexaWorkspaceForActionstepMatterQueryHandler(
     GetPexaWorkspaceForActionstepMatterQuery.ValidatorCollection validator,
     WCADbContext wCADbContext)
 {
     _validator    = validator;
     _wCADbContext = wCADbContext;
 }
Exemplo n.º 6
0
 public Handler(
     Validator validator,
     WCADbContext wCADbContext)
 {
     _validator    = validator;
     _wCADbContext = wCADbContext;
 }
Exemplo n.º 7
0
 public DeleteGlobalXSettingsCommandHandler(
     WCADbContext wCADbContext,
     Validator validator)
 {
     _validator    = validator;
     _wCADbContext = wCADbContext;
 }
 public SetAdminUserCommandHandler(
     WCADbContext wCADbContext,
     Validator validator)
 {
     _validator    = validator;
     _wCADbContext = wCADbContext;
 }
 public StorePexaWorkspaceIdInActionstepMatterCommandHandler(
     WCADbContext wCADbContext,
     IActionstepService actionstepService)
 {
     _actionstepService = actionstepService;
     _wCADbContext      = wCADbContext;
 }
Exemplo n.º 10
0
 public Handler(
     ValidatorCollection validator,
     WCADbContext wCADbContext)
 {
     _validator    = validator;
     _wCADbContext = wCADbContext;
 }
Exemplo n.º 11
0
 public SetLastDocumentSyncTimeCommandHandler(
     WCADbContext wCADbContext,
     Validator validator)
 {
     _validator    = validator;
     _wCADbContext = wCADbContext;
 }
Exemplo n.º 12
0
 public Handler(
     IInfoTrackCredentialRepository infoTrackCredentialRepository,
     WCADbContext wCADbContext
     )
 {
     _infoTrackCredentialRepository = infoTrackCredentialRepository;
     _wCADbContext = wCADbContext;
 }
Exemplo n.º 13
0
 public ValidateActionstepMatterCommandHandler(
     IActionstepService actionstepService,
     WCADbContext wCADbContext,
     Validator validator)
 {
     _actionstepService = actionstepService;
     _wCADbContext      = wCADbContext;
     _validator         = validator;
 }
Exemplo n.º 14
0
 public Handler(
     ValidatorCollection validator,
     WCADbContext wCADbContext,
     IMediator mediator)
 {
     _validator    = validator;
     _wCADbContext = wCADbContext;
     _mediator     = mediator;
 }
Exemplo n.º 15
0
        public static WCAUser GetTestUser(this WCADbContext dbContext)
        {
            if (dbContext is null)
            {
                throw new ArgumentNullException(nameof(dbContext));
            }

            return(dbContext.Users.Single(u => u.NormalizedEmail == TestUserEmail.ToUpper(CultureInfo.InvariantCulture)));
        }
Exemplo n.º 16
0
 public Handler(
     Validator validator,
     WCADbContext wCADbContext,
     IMediator mediator)
 {
     this.validator    = validator;
     this.wCADbContext = wCADbContext;
     this.mediator     = mediator;
 }
Exemplo n.º 17
0
 public IntegrationsQueryHandler(
     WCADbContext wCADbContext,
     Validator validator,
     IMemoryCache memoryCache)
 {
     _wCADbContext = wCADbContext;
     _validator    = validator;
     _memoryCache  = memoryCache;
 }
Exemplo n.º 18
0
 public Handler(IOptions <WCACoreSettings> appSettings,
                WCADbContext wCADbContext,
                IEmailSender emailSender,
                IMapper mapper,
                Validator validator)
 {
     _appSettings  = appSettings;
     _wCADbContext = wCADbContext;
     _emailSender  = emailSender;
     _mapper       = mapper;
     _validator    = validator;
 }
 public CreatePexaWorkspaceCommandHandler(
     CreatePexaWorkspaceCommand.ValidatorCollection validator,
     IClock clock,
     IExtendedPexaService pexaService,
     IEventSourcedAggregateRepository <ActionstepMatter> actionstepMatterRepository,
     WCADbContext wCADbContext
     )
 {
     _validator   = validator;
     _clock       = clock;
     _pexaService = pexaService;
     _actionstepMatterRepository = actionstepMatterRepository;
     _wCADbContext = wCADbContext;
 }
 public NewCustomerCommandHandler(
     IOptions <WCACoreSettings> appSettings,
     IMediator mediator,
     IHttpClientFactory httpClientFactory,
     WCADbContext wCADbContext,
     ITelemetryLogger telemetryLogger,
     IActionstepService actionstepService)
 {
     this.appSettings       = appSettings;
     this.mediator          = mediator;
     this.httpClientFactory = httpClientFactory;
     this.wCADbContext      = wCADbContext;
     this.telemetryLogger   = telemetryLogger;
     this.actionstepService = actionstepService;
 }
Exemplo n.º 21
0
 public Handler(
     Validator validator,
     IMediator mediator,
     WCADbContext wCADbContext,
     IServiceScopeFactory serviceScopeFactory,
     IMapper mapper,
     CloudStorageAccount cloudStorageAccount,
     ITelemetryLogger telemetryLogger)
 {
     this.validator           = validator;
     this.mediator            = mediator;
     this.wCADbContext        = wCADbContext;
     this.serviceScopeFactory = serviceScopeFactory;
     this.mapper = mapper;
     this.cloudStorageAccount = cloudStorageAccount;
     this.telemetryLogger     = telemetryLogger;
 }
            public Handler(
                WCADbContext wCADbContext,
                Validator validator,
                IOptions <WCACoreSettings> appSettingsAccessor,
                IInfoTrackCredentialRepository infoTrackCredentialRepository,
                IEmailSender emailSender)
            {
                if (appSettingsAccessor is null)
                {
                    throw new ArgumentNullException(nameof(appSettingsAccessor));
                }

                _appSettings  = appSettingsAccessor.Value;
                _wCADbContext = wCADbContext;
                _validator    = validator;
                _infoTrackCredentialRepository = infoTrackCredentialRepository;
                _emailSender = emailSender;
            }
Exemplo n.º 23
0
        public ReportingSignupController(IOptions <AppSettings> appSettings,
                                         UserManager <WCAUser> userManager,
                                         WCADbContext wCADbContext,
                                         IMediator mediator,
                                         IMapper mapper,
                                         ILogger <ReportingSignupController> logger)
        {
            if (appSettings is null)
            {
                throw new ArgumentNullException(nameof(appSettings));
            }

            this.appSettings  = appSettings.Value;
            this.userManager  = userManager;
            this.wCADbContext = wCADbContext;
            this.mediator     = mediator;
            this.mapper       = mapper;
            this.logger       = logger;
        }
Exemplo n.º 24
0
 public Handler(
     IActionstepService actionstepService,
     IMediator mediator,
     WCADbContext wCADbContext,
     IMapper mapper,
     ITelemetryLogger telemetryLogger,
     IInfoTrackCredentialRepository infoTrackCredentialRepository,
     ILoggerFactory loggerFactory,
     IOptions <WCACoreSettings> appSettings,
     ITokenSetRepository tokenSetRepository)
 {
     _actionstepService             = actionstepService;
     _mediator                      = mediator;
     _wCADbContext                  = wCADbContext;
     _mapper                        = mapper;
     _telemetryLogger               = telemetryLogger;
     _infoTrackCredentialRepository = infoTrackCredentialRepository;
     _appSettings                   = appSettings;
     _tokenSetRepository            = tokenSetRepository;
     _logger                        = loggerFactory.CreateLogger <Handler>();
 }
Exemplo n.º 25
0
        public static async Task SeedTestUsers(this WCADbContext wCADbContext, IServiceProvider serviceProvider)
        {
            var userManager = serviceProvider.GetService <UserManager <WCAUser> >();

            var newTestUser = new WCAUser()
            {
                Email     = TestUserEmail,
                UserName  = TestUserEmail,
                FirstName = TestFirstName,
                LastName  = TestLastName
            };

            await userManager.CreateAsync(newTestUser);

            var newTest2User = new WCAUser()
            {
                Email     = Test2UserEmail,
                UserName  = Test2UserEmail,
                FirstName = Test2FirstName,
                LastName  = Test2LastName
            };

            await userManager.CreateAsync(newTest2User);
        }
Exemplo n.º 26
0
 public ActionstepOrgsQueryHandler(WCADbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 27
0
 public CopyDocumentVersionToActionstepErrorStateHandler(
     WCADbContext wCADbContext)
 {
     _wCADbContext = wCADbContext;
 }
 public DocumentVersionMatterIdUpdatedMatterMappingHandler(
     WCADbContext wCADbContext)
 {
     _wCADbContext = wCADbContext;
 }
Exemplo n.º 29
0
 public DeleteModel(WCADbContext context)
 {
     _wcaDbContext = context;
 }
Exemplo n.º 30
0
 public CreateModel(WCADbContext context)
 {
     _wcaDbContext = context;
 }