public CapabilitiesQueryService( ITokenResponseClient client, IJwtTokenParser jwtTokenParser, IJwtTokenResponseValidator tokenResponseValidator, IShareSettings settings) { _client = client; _jwtTokenParser = jwtTokenParser; _tokenResponseValidator = tokenResponseValidator; _eori = settings.Eori; }
public PartiesQueryService( IShareSettings settings, ITokenResponseClient client, IJwtTokenParser jwtTokenParser, ISchemeOwnerJwtTokenResponseValidator tokenResponseValidator) { _requestUri = $"{settings.SchemeOwnerUrl}/{Constants.SchemeOwnerPartiesEndpoint}"; _client = client; _tokenResponseValidator = tokenResponseValidator; _jwtTokenParser = jwtTokenParser; }
public TokenResponseClientTests() { _httpClientFactoryMock = new Mock <IHttpClientFactory>(); _sut = new TokenResponseClient(_httpClientFactoryMock.Object); }