diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-15 14:54:39 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-15 14:54:39 -0700 |
commit | df342fb180ae32ba8ce3443862b38e02cdea8b8d (patch) | |
tree | f39784b23dbe8018c85847967f4e944fab722507 /src/DotNetOpenAuth.Test/OpenId/ChannelElements | |
parent | 8489549474fc59f61ff0b7e8ae7d8ffaa9bd7566 (diff) | |
download | DotNetOpenAuth-df342fb180ae32ba8ce3443862b38e02cdea8b8d.zip DotNetOpenAuth-df342fb180ae32ba8ce3443862b38e02cdea8b8d.tar.gz DotNetOpenAuth-df342fb180ae32ba8ce3443862b38e02cdea8b8d.tar.bz2 |
Renamed some methods on the Channel class to be more consistent.
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/ChannelElements')
-rw-r--r-- | src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs b/src/DotNetOpenAuth.Test/OpenId/ChannelElements/OpenIdChannelTests.cs index a9c1924..385cd19 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; - OutgoingWebResponse directResponse = this.accessor.SendDirectMessageResponse(message); + OutgoingWebResponse directResponse = this.accessor.PrepareDirectResponse(message); Assert.AreEqual(expectedContentType, directResponse.Headers[HttpResponseHeader.ContentType]); byte[] actualBytes = new byte[directResponse.ResponseStream.Length]; directResponse.ResponseStream.Read(actualBytes, 0, actualBytes.Length); @@ -108,13 +108,13 @@ namespace DotNetOpenAuth.Test.OpenId.ChannelElements { [TestMethod] public void SendDirectMessageResponseHonorsHttpStatusCodes() { IProtocolMessage message = MessagingTestBase.GetStandardTestMessage(MessagingTestBase.FieldFill.AllRequired); - OutgoingWebResponse directResponse = this.accessor.SendDirectMessageResponse(message); + OutgoingWebResponse directResponse = this.accessor.PrepareDirectResponse(message); Assert.AreEqual(HttpStatusCode.OK, directResponse.Status); var httpMessage = new TestDirectResponseMessageWithHttpStatus(); MessagingTestBase.GetStandardTestMessage(MessagingTestBase.FieldFill.AllRequired, httpMessage); httpMessage.HttpStatusCode = HttpStatusCode.NotAcceptable; - directResponse = this.accessor.SendDirectMessageResponse(httpMessage); + directResponse = this.accessor.PrepareDirectResponse(httpMessage); Assert.AreEqual(HttpStatusCode.NotAcceptable, directResponse.Status); } } |