summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks/TestBaseMessage.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-11-20 06:54:14 -0800
committerAndrew <andrewarnott@gmail.com>2008-11-20 06:54:14 -0800
commit1a882368e2e99e9360cfd1f4f23f5acb70306436 (patch)
treeab0d370a8b8b9d5b638524f189a39991970834bb /src/DotNetOpenAuth.Test/Mocks/TestBaseMessage.cs
parentd51be63270463542a308a9a2cef992b7d55baaa6 (diff)
downloadDotNetOpenAuth-1a882368e2e99e9360cfd1f4f23f5acb70306436.zip
DotNetOpenAuth-1a882368e2e99e9360cfd1f4f23f5acb70306436.tar.gz
DotNetOpenAuth-1a882368e2e99e9360cfd1f4f23f5acb70306436.tar.bz2
Reworked the way messages are instantiated and deserialized.
This was a whole lot of work to just get multi-version capability added to message types so that OpenID could handle its few versions.
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/TestBaseMessage.cs')
-rw-r--r--src/DotNetOpenAuth.Test/Mocks/TestBaseMessage.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/TestBaseMessage.cs b/src/DotNetOpenAuth.Test/Mocks/TestBaseMessage.cs
index bd17dd6..212907f 100644
--- a/src/DotNetOpenAuth.Test/Mocks/TestBaseMessage.cs
+++ b/src/DotNetOpenAuth.Test/Mocks/TestBaseMessage.cs
@@ -17,6 +17,7 @@ namespace DotNetOpenAuth.Test.Mocks {
internal class TestBaseMessage : IProtocolMessage, IBaseMessageExplicitMembers {
private Dictionary<string, string> extraData = new Dictionary<string, string>();
+ private bool incoming;
[MessagePart("age", IsRequired = true)]
public int Age { get; set; }
@@ -43,7 +44,9 @@ namespace DotNetOpenAuth.Test.Mocks {
get { return this.extraData; }
}
- bool IProtocolMessage.Incoming { get; set; }
+ bool IProtocolMessage.Incoming {
+ get { return this.incoming; }
+ }
internal string PrivatePropertyAccessor {
get { return this.PrivateProperty; }
@@ -54,5 +57,9 @@ namespace DotNetOpenAuth.Test.Mocks {
private string PrivateProperty { get; set; }
void IProtocolMessage.EnsureValidMessage() { }
+
+ internal void SetAsIncoming() {
+ this.incoming = true;
+ }
}
}