Ejemplo n.º 1
0
        public override void SetUp()
        {
            base.SetUp();

            var authServerChannel = new OAuth2AuthorizationServerChannel(new Mock <IAuthorizationServerHost>().Object, new Mock <ClientAuthenticationModule>().Object);

            this.authServerMessageFactory = authServerChannel.MessageFactoryTestHook;

            var clientChannel = new OAuth2ClientChannel();

            this.clientMessageFactory = clientChannel.MessageFactoryTestHook;
        }
Ejemplo n.º 2
0
 internal CoordinatingOAuth2ClientChannel(Channel wrappedChannel, Action <IProtocolMessage> incomingMessageFilter, Action <IProtocolMessage> outgoingMessageFilter)
     : base(wrappedChannel, incomingMessageFilter, outgoingMessageFilter)
 {
     this.wrappedChannel = (OAuth2ClientChannel)wrappedChannel;
 }