Пример #1
0
        public async Task RevokeTokenShouldReturnOk()
        {
            _discoveryResponse.OperatorUrls.RevokeTokenUrl = "http://revoke";
            _restClient.QueueResponse(_responses["token-revoked"]);

            var result = await _mobileConnect.RevokeTokenAsync("token", null, _discoveryResponse);

            Assert.AreEqual(MobileConnectResponseType.TokenRevoked, result.ResponseType);
            Assert.IsNull(result.ErrorCode);
            Assert.IsNull(result.ErrorMessage);
        }
 private MobileConnect.Discovery.DiscoveryResponse CompleteDiscovery()
 {
     _restClient.QueueResponse(_responses["authentication"]);
     _restClient.QueueResponse(_responses["provider-metadata"]);
     return(_discovery.CompleteSelectedOperatorDiscovery(_config, _config.RedirectUrl, "111", "11"));
 }