diff options
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/TestChannel.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/TestChannel.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs b/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs new file mode 100644 index 0000000..ebb5858 --- /dev/null +++ b/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs @@ -0,0 +1,35 @@ +//----------------------------------------------------------------------- +// <copyright file="TestChannel.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.Test.Mocks { + using System; + using System.Collections.Generic; + using System.Linq; + using System.Text; + using DotNetOpenAuth.Messaging; + + internal class TestChannel : Channel { + internal TestChannel() + : this(new TestMessageTypeProvider()) { + } + + internal TestChannel(IMessageTypeProvider messageTypeProvider, params IChannelBindingElement[] bindingElements) + : base(messageTypeProvider, bindingElements) { + } + + protected override IProtocolMessage RequestInternal(IDirectedProtocolMessage request) { + throw new NotImplementedException("Request"); + } + + protected override IProtocolMessage ReadFromResponseInternal(System.IO.Stream responseStream) { + throw new NotImplementedException("ReadFromResponse"); + } + + protected override Response SendDirectMessageResponse(IProtocolMessage response) { + throw new NotImplementedException("SendDirectMessageResponse"); + } + } +} |