public override void SetUp() { base.SetUp(); var authServerChannel = new OAuth2AuthorizationServerChannel(new Mock<IAuthorizationServer>().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; }