public void AuthorizationServiceCanDisconnectFromClearingHouse()
        {
            //Setup
            var authorizationService = new AuthorizationService(CLEARING_HOUSE_ADDRESS, CLIENT_ID, CLIENT_SECRET, _scopes);

            //Execute
            authorizationService.ConnectToClearingHouse();
            var wasSuccessful = authorizationService.DisconnectFromClearingHouse();

            //Verify
            wasSuccessful.ShouldBeTrue();

            //Teardown
        }
        public void AuthorizationServiceCanRetriveAccessToken()
        {
            //Setup
            this._autoResetEvent = new AutoResetEvent(false);
            var authorizationService = new AuthorizationService(CLEARING_HOUSE_ADDRESS, CLIENT_ID, CLIENT_SECRET, _scopes);

            authorizationService.AccessResponseReceived += accessResponse =>
            {
                accessResponse.AccessToken.ShouldNotBeNull();
                this._autoResetEvent.Set();
            };

            //Execute
            authorizationService.ConnectToClearingHouse();
            authorizationService.RetriveAccessToken();

            //Verify
            this._autoResetEvent.WaitOne();

            //Teardown
            authorizationService.DisconnectFromClearingHouse();
        }