Exemplo n.º 1
0
        public void GetSha256_Test_ReturnsSha()
        {
            var sut = new TestEnvironmentRootCertificateStorage();

            var result = sut.GetSha256();

            result.Should().Be("A78FDF7BA13BBD95C6236972DD003FAE07F4E447B791B6EF6737AD22F0B61862");
        }
        public SchemeOwnerJwtTokenResponseValidatorTests()
        {
            var testCaStrategy         = new TestCaStrategy();
            var rootCertificateStorage = new TestEnvironmentRootCertificateStorage();

            _decodedJwtValidatorMock = new Mock <IDecodedJwtValidator>();
            _settings   = new DefaultSettings(ConfigurationBuilder.Build());
            _loggerMock = new Mock <ILogger <SchemeOwnerJwtTokenResponseValidator> >();

            _sut = new SchemeOwnerJwtTokenResponseValidator(
                _decodedJwtValidatorMock.Object,
                rootCertificateStorage,
                _loggerMock.Object,
                testCaStrategy,
                _settings);
        }