Ejemplo n.º 1
0
 public CapabilitiesQueryService(
     ITokenResponseClient client,
     IJwtTokenParser jwtTokenParser,
     IJwtTokenResponseValidator tokenResponseValidator,
     IShareSettings settings)
 {
     _client                 = client;
     _jwtTokenParser         = jwtTokenParser;
     _tokenResponseValidator = tokenResponseValidator;
     _eori = settings.Eori;
 }
Ejemplo n.º 2
0
 public PartiesQueryService(
     IShareSettings settings,
     ITokenResponseClient client,
     IJwtTokenParser jwtTokenParser,
     ISchemeOwnerJwtTokenResponseValidator tokenResponseValidator)
 {
     _requestUri             = $"{settings.SchemeOwnerUrl}/{Constants.SchemeOwnerPartiesEndpoint}";
     _client                 = client;
     _tokenResponseValidator = tokenResponseValidator;
     _jwtTokenParser         = jwtTokenParser;
 }
Ejemplo n.º 3
0
        public TokenResponseClientTests()
        {
            _httpClientFactoryMock = new Mock <IHttpClientFactory>();

            _sut = new TokenResponseClient(_httpClientFactoryMock.Object);
        }