summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks/TestDerivedMessage.cs
blob: 46f6acb5ecc5ce785e099b4b03295746bb5cbee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//-----------------------------------------------------------------------
// <copyright file="TestDerivedMessage.cs" company="Outercurve Foundation">
//     Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth.Test.Mocks {
	using System.Runtime.Serialization;
	using DotNetOpenAuth.Messaging;

	internal class TestDerivedMessage : TestBaseMessage {
		/// <summary>
		/// Gets or sets the first value.
		/// </summary>
		/// <remarks>
		/// This element should appear AFTER <see cref="SecondDerivedElement"/>
		/// due to alphabetical ordering rules, but after all the elements in the
		/// base class due to inheritance rules.
		/// </remarks>
		[MessagePart]
		public string TheFirstDerivedElement { get; set; }

		/// <summary>
		/// Gets or sets the second value.
		/// </summary>
		/// <remarks>
		/// This element should appear BEFORE <see cref="TheFirstDerivedElement"/>,
		/// but after all the elements in the base class.
		/// </remarks>
		[MessagePart]
		public string SecondDerivedElement { get; set; }
	}
}