diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-15 14:31:08 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-15 14:31:08 -0700 |
commit | f609820f0486cf92edab48c3fbd5adfc133263bc (patch) | |
tree | 56d1ebda5f75be8d572e0a093b311a81bc920e16 /src/DotNetOpenAuth.Test | |
parent | 139c9be97c1ecc42e98426f8bf888eff2ab64659 (diff) | |
download | DotNetOpenAuth-f609820f0486cf92edab48c3fbd5adfc133263bc.zip DotNetOpenAuth-f609820f0486cf92edab48c3fbd5adfc133263bc.tar.gz DotNetOpenAuth-f609820f0486cf92edab48c3fbd5adfc133263bc.tar.bz2 |
Renamed UserAgentResponse to OutgoingWebResponse, and DirectWebResponse to IncomingWebResponse.
Diffstat (limited to 'src/DotNetOpenAuth.Test')
-rw-r--r-- | src/DotNetOpenAuth.Test/DotNetOpenAuth.Test.csproj | 4 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/Messaging/ChannelTests.cs | 4 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/Messaging/ResponseTests.cs | 4 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs | 8 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs | 14 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs (renamed from src/DotNetOpenAuth.Test/Mocks/CoordinatingUserAgentResponse.cs) | 8 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/MockHttpRequest.cs | 10 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/TestBadChannel.cs | 4 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/TestChannel.cs | 4 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs | 8 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/OAuth/AppendixScenarios.cs | 4 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/OAuth/ChannelElements/OAuthChannelTests.cs | 4 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs | 4 |
13 files changed, 40 insertions, 40 deletions
diff --git a/src/DotNetOpenAuth.Test/DotNetOpenAuth.Test.csproj b/src/DotNetOpenAuth.Test/DotNetOpenAuth.Test.csproj index 8c3f4fa..af0ef37 100644 --- a/src/DotNetOpenAuth.Test/DotNetOpenAuth.Test.csproj +++ b/src/DotNetOpenAuth.Test/DotNetOpenAuth.Test.csproj @@ -120,7 +120,7 @@ <Compile Include="Mocks\AssociateUnencryptedRequestNoSslCheck.cs" /> <Compile Include="Mocks\CoordinatingChannel.cs" /> <Compile Include="Mocks\CoordinatingHttpRequestInfo.cs" /> - <Compile Include="Mocks\CoordinatingUserAgentResponse.cs" /> + <Compile Include="Mocks\CoordinatingOutgoingWebResponse.cs" /> <Compile Include="Mocks\InMemoryTokenManager.cs" /> <Compile Include="Mocks\MockHttpRequest.cs" /> <Compile Include="Mocks\MockIdentifier.cs" /> @@ -254,4 +254,4 @@ </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="..\..\tools\DotNetOpenAuth.Versioning.targets" /> -</Project> +</Project>
\ No newline at end of file diff --git a/src/DotNetOpenAuth.Test/Messaging/ChannelTests.cs b/src/DotNetOpenAuth.Test/Messaging/ChannelTests.cs index c8f5cbe..8039b21 100644 --- a/src/DotNetOpenAuth.Test/Messaging/ChannelTests.cs +++ b/src/DotNetOpenAuth.Test/Messaging/ChannelTests.cs @@ -75,7 +75,7 @@ namespace DotNetOpenAuth.Test.Messaging { message.Recipient = new Uri("http://provider/path"); var expected = GetStandardTestFields(FieldFill.CompleteBeforeBindings); - UserAgentResponse response = this.Channel.PrepareResponse(message); + OutgoingWebResponse response = this.Channel.PrepareResponse(message); Assert.AreEqual(HttpStatusCode.Redirect, response.Status); StringAssert.StartsWith(response.Headers[HttpResponseHeader.Location], "http://provider/path"); foreach (var pair in expected) { @@ -118,7 +118,7 @@ namespace DotNetOpenAuth.Test.Messaging { Location = new Uri("http://host/path"), Recipient = new Uri("http://provider/path"), }; - UserAgentResponse response = this.Channel.PrepareResponse(message); + OutgoingWebResponse response = this.Channel.PrepareResponse(message); Assert.AreEqual(HttpStatusCode.OK, response.Status, "A form redirect should be an HTTP successful response."); Assert.IsNull(response.Headers[HttpResponseHeader.Location], "There should not be a redirection header in the response."); string body = response.Body; diff --git a/src/DotNetOpenAuth.Test/Messaging/ResponseTests.cs b/src/DotNetOpenAuth.Test/Messaging/ResponseTests.cs index 4320a1b..a0e7c3f 100644 --- a/src/DotNetOpenAuth.Test/Messaging/ResponseTests.cs +++ b/src/DotNetOpenAuth.Test/Messaging/ResponseTests.cs @@ -15,7 +15,7 @@ namespace DotNetOpenAuth.Test.Messaging { public class ResponseTests : TestBase { [TestMethod, ExpectedException(typeof(InvalidOperationException))] public void SendWithoutAspNetContext() { - new UserAgentResponse().Send(); + new OutgoingWebResponse().Send(); } [TestMethod] @@ -26,7 +26,7 @@ namespace DotNetOpenAuth.Test.Messaging { HttpContext context = new HttpContext(httpRequest, httpResponse); HttpContext.Current = context; - UserAgentResponse response = new UserAgentResponse(); + OutgoingWebResponse response = new OutgoingWebResponse(); response.Status = System.Net.HttpStatusCode.OK; response.Headers["someHeaderName"] = "someHeaderValue"; response.Body = "some body"; diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs index b5fc321..56fe8bc 100644 --- a/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs +++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingChannel.cs @@ -167,12 +167,12 @@ namespace DotNetOpenAuth.Test.Mocks { return responseMessage; } - protected override UserAgentResponse SendDirectMessageResponse(IProtocolMessage response) { + protected override OutgoingWebResponse SendDirectMessageResponse(IProtocolMessage response) { this.ProcessMessageFilter(response, true); - return new CoordinatingUserAgentResponse(response, this.RemoteChannel); + return new CoordinatingOutgoingWebResponse(response, this.RemoteChannel); } - protected override UserAgentResponse SendIndirectMessage(IDirectedProtocolMessage message) { + protected override OutgoingWebResponse SendIndirectMessage(IDirectedProtocolMessage message) { this.ProcessMessageFilter(message, true); // In this mock transport, direct and indirect messages are the same. return this.SendDirectMessageResponse(message); @@ -186,7 +186,7 @@ namespace DotNetOpenAuth.Test.Mocks { return request.Message; } - protected override IDictionary<string, string> ReadFromResponseCore(DirectWebResponse response) { + protected override IDictionary<string, string> ReadFromResponseCore(IncomingWebResponse response) { Channel_Accessor accessor = Channel_Accessor.AttachShadow(this.wrappedChannel); return accessor.ReadFromResponseCore(response); } diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs index a533815..6c32495 100644 --- a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs +++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOAuthChannel.cs @@ -18,7 +18,7 @@ namespace DotNetOpenAuth.Test.Mocks { internal class CoordinatingOAuthChannel : OAuthChannel { private EventWaitHandle incomingMessageSignal = new AutoResetEvent(false); private IProtocolMessage incomingMessage; - private UserAgentResponse incomingRawResponse; + private OutgoingWebResponse incomingRawResponse; /// <summary> /// Initializes a new instance of the <see cref="CoordinatingOAuthChannel"/> class for Consumers. @@ -41,7 +41,7 @@ namespace DotNetOpenAuth.Test.Mocks { /// </summary> internal CoordinatingOAuthChannel RemoteChannel { get; set; } - internal UserAgentResponse RequestProtectedResource(AccessProtectedResourceRequest request) { + internal OutgoingWebResponse RequestProtectedResource(AccessProtectedResourceRequest request) { ((ITamperResistantOAuthMessage)request).HttpMethod = this.GetHttpMethod(((ITamperResistantOAuthMessage)request).HttpMethods); this.PrepareMessageForSending(request); HttpRequestInfo requestInfo = this.SpoofHttpMethod(request); @@ -52,7 +52,7 @@ namespace DotNetOpenAuth.Test.Mocks { return this.AwaitIncomingRawResponse(); } - internal void SendDirectRawResponse(UserAgentResponse response) { + internal void SendDirectRawResponse(OutgoingWebResponse response) { this.RemoteChannel.incomingRawResponse = response; this.RemoteChannel.incomingMessageSignal.Set(); } @@ -71,13 +71,13 @@ namespace DotNetOpenAuth.Test.Mocks { return this.AwaitIncomingMessage(); } - protected override UserAgentResponse SendDirectMessageResponse(IProtocolMessage response) { + protected override OutgoingWebResponse SendDirectMessageResponse(IProtocolMessage response) { this.RemoteChannel.incomingMessage = CloneSerializedParts(response, null); this.RemoteChannel.incomingMessageSignal.Set(); return null; } - protected override UserAgentResponse SendIndirectMessage(IDirectedProtocolMessage message) { + protected override OutgoingWebResponse SendIndirectMessage(IDirectedProtocolMessage message) { // In this mock transport, direct and indirect messages are the same. return this.SendDirectMessageResponse(message); } @@ -114,9 +114,9 @@ namespace DotNetOpenAuth.Test.Mocks { return response; } - private UserAgentResponse AwaitIncomingRawResponse() { + private OutgoingWebResponse AwaitIncomingRawResponse() { this.incomingMessageSignal.WaitOne(); - UserAgentResponse response = this.incomingRawResponse; + OutgoingWebResponse response = this.incomingRawResponse; this.incomingRawResponse = null; return response; } diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingUserAgentResponse.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs index 75c68e0..07f9bc9 100644 --- a/src/DotNetOpenAuth.Test/Mocks/CoordinatingUserAgentResponse.cs +++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs @@ -1,5 +1,5 @@ //----------------------------------------------------------------------- -// <copyright file="CoordinatingUserAgentResponse.cs" company="Andrew Arnott"> +// <copyright file="CoordinatingOutgoingWebResponse.cs" company="Andrew Arnott"> // Copyright (c) Andrew Arnott. All rights reserved. // </copyright> //----------------------------------------------------------------------- @@ -11,15 +11,15 @@ namespace DotNetOpenAuth.Test.Mocks { using System.Text; using DotNetOpenAuth.Messaging; - internal class CoordinatingUserAgentResponse : UserAgentResponse { + internal class CoordinatingOutgoingWebResponse : OutgoingWebResponse { private CoordinatingChannel receivingChannel; /// <summary> - /// Initializes a new instance of the <see cref="CoordinatingUserAgentResponse"/> class. + /// Initializes a new instance of the <see cref="CoordinatingOutgoingWebResponse"/> class. /// </summary> /// <param name="message">The direct response message to send to the remote channel. This message will be cloned.</param> /// <param name="receivingChannel">The receiving channel.</param> - internal CoordinatingUserAgentResponse(IProtocolMessage message, CoordinatingChannel receivingChannel) { + internal CoordinatingOutgoingWebResponse(IProtocolMessage message, CoordinatingChannel receivingChannel) { ErrorUtilities.VerifyArgumentNotNull(message, "message"); ErrorUtilities.VerifyArgumentNotNull(receivingChannel, "receivingChannel"); diff --git a/src/DotNetOpenAuth.Test/Mocks/MockHttpRequest.cs b/src/DotNetOpenAuth.Test/Mocks/MockHttpRequest.cs index 75f78ad..51e966b 100644 --- a/src/DotNetOpenAuth.Test/Mocks/MockHttpRequest.cs +++ b/src/DotNetOpenAuth.Test/Mocks/MockHttpRequest.cs @@ -19,7 +19,7 @@ namespace DotNetOpenAuth.Test.Mocks { using DotNetOpenAuth.Yadis; internal class MockHttpRequest { - private readonly Dictionary<Uri, DirectWebResponse> registeredMockResponses = new Dictionary<Uri, DirectWebResponse>(); + private readonly Dictionary<Uri, IncomingWebResponse> registeredMockResponses = new Dictionary<Uri, IncomingWebResponse>(); private MockHttpRequest(IDirectWebRequestHandler mockHandler) { ErrorUtilities.VerifyArgumentNotNull(mockHandler, "mockHandler"); @@ -40,7 +40,7 @@ namespace DotNetOpenAuth.Test.Mocks { return mock; } - internal void RegisterMockResponse(DirectWebResponse response) { + internal void RegisterMockResponse(IncomingWebResponse response) { ErrorUtilities.VerifyArgumentNotNull(response, "response"); if (this.registeredMockResponses.ContainsKey(response.RequestUri)) { Logger.WarnFormat("Mock HTTP response already registered for {0}.", response.RequestUri); @@ -172,7 +172,7 @@ namespace DotNetOpenAuth.Test.Mocks { var redirectionHeaders = new WebHeaderCollection { { HttpResponseHeader.Location, redirectLocation.AbsoluteUri }, }; - DirectWebResponse response = new CachedDirectWebResponse(origin, origin, redirectionHeaders, HttpStatusCode.Redirect, null, null, new MemoryStream()); + IncomingWebResponse response = new CachedDirectWebResponse(origin, origin, redirectionHeaders, HttpStatusCode.Redirect, null, null, new MemoryStream()); this.RegisterMockResponse(response); } @@ -188,8 +188,8 @@ namespace DotNetOpenAuth.Test.Mocks { this.RegisterMockResponse(errorResponse); } - private DirectWebResponse GetMockResponse(HttpWebRequest request) { - DirectWebResponse response; + private IncomingWebResponse GetMockResponse(HttpWebRequest request) { + IncomingWebResponse response; if (this.registeredMockResponses.TryGetValue(request.RequestUri, out response)) { // reset response stream position so this response can be reused on a subsequent request. response.ResponseStream.Seek(0, SeekOrigin.Begin); diff --git a/src/DotNetOpenAuth.Test/Mocks/TestBadChannel.cs b/src/DotNetOpenAuth.Test/Mocks/TestBadChannel.cs index 86108fb..c55d176 100644 --- a/src/DotNetOpenAuth.Test/Mocks/TestBadChannel.cs +++ b/src/DotNetOpenAuth.Test/Mocks/TestBadChannel.cs @@ -37,11 +37,11 @@ namespace DotNetOpenAuth.Test.Mocks { return base.ReadFromRequest(request); } - protected override IDictionary<string, string> ReadFromResponseCore(DirectWebResponse response) { + protected override IDictionary<string, string> ReadFromResponseCore(IncomingWebResponse response) { throw new NotImplementedException(); } - protected override UserAgentResponse SendDirectMessageResponse(IProtocolMessage response) { + protected override OutgoingWebResponse SendDirectMessageResponse(IProtocolMessage response) { throw new NotImplementedException(); } } diff --git a/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs b/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs index a72ab63..3754f01 100644 --- a/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs +++ b/src/DotNetOpenAuth.Test/Mocks/TestChannel.cs @@ -25,7 +25,7 @@ namespace DotNetOpenAuth.Test.Mocks { : base(messageTypeProvider, bindingElements) { } - protected override IDictionary<string, string> ReadFromResponseCore(DirectWebResponse response) { + protected override IDictionary<string, string> ReadFromResponseCore(IncomingWebResponse response) { throw new NotImplementedException("ReadFromResponseInternal"); } @@ -33,7 +33,7 @@ namespace DotNetOpenAuth.Test.Mocks { throw new NotImplementedException("CreateHttpRequest"); } - protected override UserAgentResponse SendDirectMessageResponse(IProtocolMessage response) { + protected override OutgoingWebResponse SendDirectMessageResponse(IProtocolMessage response) { throw new NotImplementedException("SendDirectMessageResponse"); } } diff --git a/src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs b/src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs index 9ae87a5..b74c0f0 100644 --- a/src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs +++ b/src/DotNetOpenAuth.Test/Mocks/TestWebRequestHandler.cs @@ -18,7 +18,7 @@ namespace DotNetOpenAuth.Test.Mocks { /// <summary> /// Gets or sets the callback used to provide the mock response for the mock request. /// </summary> - internal Func<HttpWebRequest, DirectWebResponse> Callback { get; set; } + internal Func<HttpWebRequest, IncomingWebResponse> Callback { get; set; } /// <summary> /// Gets the stream that was written out as if on an HTTP request. @@ -83,11 +83,11 @@ namespace DotNetOpenAuth.Test.Mocks { /// <returns> /// An instance of <see cref="Response"/> describing the response. /// </returns> - public DirectWebResponse GetResponse(HttpWebRequest request) { + public IncomingWebResponse GetResponse(HttpWebRequest request) { return this.GetResponse(request, DirectWebRequestOptions.None); } - public DirectWebResponse GetResponse(HttpWebRequest request, DirectWebRequestOptions options) { + public IncomingWebResponse GetResponse(HttpWebRequest request, DirectWebRequestOptions options) { if (this.Callback == null) { throw new InvalidOperationException("Set the Callback property first."); } @@ -104,7 +104,7 @@ namespace DotNetOpenAuth.Test.Mocks { return this.GetRequestStream(request); } - public DirectWebResponse GetResponse(HttpWebRequest request, bool requireSsl) { + public IncomingWebResponse GetResponse(HttpWebRequest request, bool requireSsl) { ErrorUtilities.VerifyProtocol(!requireSsl || request.RequestUri.Scheme == Uri.UriSchemeHttps, "disallowed request"); var result = this.GetResponse(request); ErrorUtilities.VerifyProtocol(!requireSsl || result.FinalUri.Scheme == Uri.UriSchemeHttps, "disallowed request"); diff --git a/src/DotNetOpenAuth.Test/OAuth/AppendixScenarios.cs b/src/DotNetOpenAuth.Test/OAuth/AppendixScenarios.cs index aaac447..c009a83 100644 --- a/src/DotNetOpenAuth.Test/OAuth/AppendixScenarios.cs +++ b/src/DotNetOpenAuth.Test/OAuth/AppendixScenarios.cs @@ -37,7 +37,7 @@ namespace DotNetOpenAuth.Test.OAuth { consumer.Channel.PrepareResponse(consumer.PrepareRequestUserAuthorization(new Uri("http://printer.example.com/request_token_ready"), null, null)); // .Send() dropped because this is just a simulation string accessToken = consumer.ProcessUserAuthorization().AccessToken; var photoRequest = consumer.CreateAuthorizingMessage(accessPhotoEndpoint, accessToken); - UserAgentResponse protectedPhoto = ((CoordinatingOAuthChannel)consumer.Channel).RequestProtectedResource(photoRequest); + OutgoingWebResponse protectedPhoto = ((CoordinatingOAuthChannel)consumer.Channel).RequestProtectedResource(photoRequest); Assert.IsNotNull(protectedPhoto); Assert.AreEqual(HttpStatusCode.OK, protectedPhoto.Status); Assert.AreEqual("image/jpeg", protectedPhoto.Headers[HttpResponseHeader.ContentType]); @@ -52,7 +52,7 @@ namespace DotNetOpenAuth.Test.OAuth { var accessRequest = sp.ReadAccessTokenRequest(); sp.Channel.PrepareResponse(sp.PrepareAccessTokenMessage(accessRequest)); // .Send() dropped because this is just a simulation string accessToken = sp.ReadProtectedResourceAuthorization().AccessToken; - ((CoordinatingOAuthChannel)sp.Channel).SendDirectRawResponse(new UserAgentResponse { + ((CoordinatingOAuthChannel)sp.Channel).SendDirectRawResponse(new OutgoingWebResponse { ResponseStream = new MemoryStream(new byte[] { 0x33, 0x66 }), Headers = new WebHeaderCollection { { HttpResponseHeader.ContentType, "image/jpeg" }, diff --git a/src/DotNetOpenAuth.Test/OAuth/ChannelElements/OAuthChannelTests.cs b/src/DotNetOpenAuth.Test/OAuth/ChannelElements/OAuthChannelTests.cs index 7fd3476..143e9be 100644 --- a/src/DotNetOpenAuth.Test/OAuth/ChannelElements/OAuthChannelTests.cs +++ b/src/DotNetOpenAuth.Test/OAuth/ChannelElements/OAuthChannelTests.cs @@ -87,7 +87,7 @@ namespace DotNetOpenAuth.Test.ChannelElements { Location = new Uri("http://hostb/pathB"), }; - UserAgentResponse response = this.channel.PrepareResponse(message); + OutgoingWebResponse response = this.channel.PrepareResponse(message); Assert.AreSame(message, response.OriginalMessage); Assert.AreEqual(HttpStatusCode.OK, response.Status); Assert.AreEqual(0, response.Headers.Count); @@ -160,7 +160,7 @@ namespace DotNetOpenAuth.Test.ChannelElements { [TestMethod] public void SendDirectMessageResponseHonorsHttpStatusCodes() { IProtocolMessage message = MessagingTestBase.GetStandardTestMessage(MessagingTestBase.FieldFill.AllRequired); - UserAgentResponse directResponse = this.accessor.SendDirectMessageResponse(message); + OutgoingWebResponse directResponse = this.accessor.SendDirectMessageResponse(message); Assert.AreEqual(HttpStatusCode.OK, directResponse.Status); var httpMessage = new TestDirectResponseMessageWithHttpStatus(); diff --git a/src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs b/src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs index 1355c54..a9c1924 100644 --- a/src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs +++ b/src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs @@ -80,7 +80,7 @@ namespace DotNetOpenAuth.Test.OpenId.ChannelElements { byte[] expectedBytes = KeyValueFormEncoding.GetBytes(messageFields); string expectedContentType = OpenIdChannel_Accessor.KeyValueFormContentType; - UserAgentResponse directResponse = this.accessor.SendDirectMessageResponse(message); + OutgoingWebResponse directResponse = this.accessor.SendDirectMessageResponse(message); Assert.AreEqual(expectedContentType, directResponse.Headers[HttpResponseHeader.ContentType]); byte[] actualBytes = new byte[directResponse.ResponseStream.Length]; directResponse.ResponseStream.Read(actualBytes, 0, actualBytes.Length); @@ -108,7 +108,7 @@ namespace DotNetOpenAuth.Test.OpenId.ChannelElements { [TestMethod] public void SendDirectMessageResponseHonorsHttpStatusCodes() { IProtocolMessage message = MessagingTestBase.GetStandardTestMessage(MessagingTestBase.FieldFill.AllRequired); - UserAgentResponse directResponse = this.accessor.SendDirectMessageResponse(message); + OutgoingWebResponse directResponse = this.accessor.SendDirectMessageResponse(message); Assert.AreEqual(HttpStatusCode.OK, directResponse.Status); var httpMessage = new TestDirectResponseMessageWithHttpStatus(); |