Пример #1
0
 public JwtCertificateValidator(
     IPartiesQueryService partiesQueryService,
     ITrustedListQueryService trustedListQueryService,
     ITestCaStrategy testCaStrategy,
     ILogger <JwtCertificateValidator> logger)
 {
     _partiesQueryService     = partiesQueryService;
     _trustedListQueryService = trustedListQueryService;
     _testCaStrategy          = testCaStrategy;
     _logger = logger;
 }
        public TrustedListQueryServiceTests()
        {
            var settings = new DefaultSettings(ConfigurationBuilder.Build());

            _jwtTokenParserMock         = new Mock <IJwtTokenParser>();
            _clientMock                 = new Mock <ITokenResponseClient>();
            _tokenResponseValidatorMock = new Mock <ISchemeOwnerJwtTokenResponseValidator>();

            _sut = new TrustedListQueryService(
                settings,
                _clientMock.Object,
                _jwtTokenParserMock.Object,
                _tokenResponseValidatorMock.Object);
        }
Пример #3
0
 public TrustedListQueryServiceTests()
 {
     _sut = ServiceScope.ServiceProvider.GetRequiredService <ITrustedListQueryService>();
 }