Beispiel #1
0
        public override void SetUp()
        {
            base.SetUp();

            this.signingElement = new RsaSha1ServiceProviderSigningBindingElement(new InMemoryTokenManager());
            this.nonceStore     = new MemoryNonceStore(StandardExpirationBindingElement.MaximumMessageAge);
            this.channel        = new OAuthServiceProviderChannel(this.signingElement, this.nonceStore, new InMemoryTokenManager(), this.serviceProviderSecuritySettings, new TestMessageFactory(), this.HostFactories);
        }
		public override void SetUp() {
			base.SetUp();

			this.webRequestHandler = new TestWebRequestHandler();
			this.signingElement = new RsaSha1SigningBindingElement(new InMemoryTokenManager());
			this.nonceStore = new NonceMemoryStore(StandardExpirationBindingElement.MaximumMessageAge);
			this.channel = new OAuthChannel(this.signingElement, this.nonceStore, new InMemoryTokenManager(), new TestMessageFactory());
			this.channel.WebRequestHandler = this.webRequestHandler;
		}