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; }
internal CoordinatingOAuth2ClientChannel(Channel wrappedChannel, Action <IProtocolMessage> incomingMessageFilter, Action <IProtocolMessage> outgoingMessageFilter) : base(wrappedChannel, incomingMessageFilter, outgoingMessageFilter) { this.wrappedChannel = (OAuth2ClientChannel)wrappedChannel; }