Ejemplo n.º 1
0
		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.accessor = OAuthChannel_Accessor.AttachShadow(this.channel);
			this.channel.WebRequestHandler = this.webRequestHandler;
		}
Ejemplo n.º 2
0
        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.accessor                  = OAuthChannel_Accessor.AttachShadow(this.channel);
            this.channel.WebRequestHandler = this.webRequestHandler;
        }