Пример #1
0
 public AuthorisationWriterCommand(WorkflowDbContext workflowDb, ILogger <AuthorisationWriterCommand> logger, IUtcDateTimeProvider dateTimeProvider, WriteNewPollTokenWriter newPollTokenWriter)
 {
     _WorkflowDb         = workflowDb ?? throw new ArgumentNullException(nameof(workflowDb));
     _Logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _DateTimeProvider   = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider));
     _NewPollTokenWriter = newPollTokenWriter ?? throw new ArgumentNullException(nameof(newPollTokenWriter));
 }
Пример #2
0
 public HttpPostLabVerifyCommand(LabVerifyArgsValidator labVerifyArgsValidator, WorkflowDbContext dbContextProvider, ILogger <HttpPostLabVerifyCommand> logger, WriteNewPollTokenWriter writer)
 {
     _LabVerifyArgsValidator = labVerifyArgsValidator ?? throw new ArgumentNullException(nameof(labVerifyArgsValidator));
     _DbContextProvider      = dbContextProvider ?? throw new ArgumentNullException(nameof(dbContextProvider));
     _Logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _Writer = writer ?? throw new ArgumentNullException(nameof(writer));
 }