public LabVerifyArgsValidatorTests() { var lf = new TestLogger <JwtService>(); _UtcDateTimeProvider = new StandardUtcDateTimeProvider(); _PollTokenService = new PollTokenService( new JwtService( new HardCodedIccPortalConfig(null, "http://test.test", "test_secret123", ClaimLifetimeHours, true), _UtcDateTimeProvider, lf), _UtcDateTimeProvider); _Validator = new LabVerifyArgsValidator(_PollTokenService); }
public WriteNewPollTokenWriter(WorkflowDbContext workflowDb, IPollTokenService pollTokenService, ILogger <WriteNewPollTokenWriter> logger) { _WorkflowDb = workflowDb ?? throw new ArgumentNullException(nameof(workflowDb)); _PollTokenService = pollTokenService ?? throw new ArgumentNullException(nameof(pollTokenService)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public LabVerifyArgsValidator(IPollTokenService pollTokenService) { _PollTokenService = pollTokenService; }