public void EnsureConstructs_AuthenticationApi()
        {
            var authenticatorApiFactory = new AuthenticatorApiFactory("https://authurl");
            var result = authenticatorApiFactory.CreateAuthenticationApi(_certificateMock.Object);

            Assert.NotNull(result);
        }
        public AppSessionManager(string sessionAuthUrl, X509Certificate2 appCertificate, long userId)
        {
            Certificate = appCertificate;
            _userId     = userId;

            var sessionAuthApiFactory = new AuthenticatorApiFactory(sessionAuthUrl);

            _sessionAuthApi = sessionAuthApiFactory.CreateAppAuthenticationApi(appCertificate);
        }
        public UserSessionManager(string sessionAuthUrl, string keyAuthUrl, X509Certificate2 certificate)
        {
            Certificate = certificate;
            var sessionAuthApiFactory = new AuthenticatorApiFactory(sessionAuthUrl);
            var keyAuthApiFactory     = new AuthenticatorApiFactory(keyAuthUrl);

            _sessionAuthApi = sessionAuthApiFactory.CreateAuthenticationApi(certificate);
            _keyAuthApi     = keyAuthApiFactory.CreateAuthenticationApi(certificate);
        }