summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth.Test/Mocks/TestDerivedMessage.cs
blob: 69e58aab1da26c7d5f7c77a99189c4126c8c880c (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
34
//-----------------------------------------------------------------------
// <copyright file="TestDerivedMessage.cs" company="Andrew Arnott">
//     Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOAuth.Test.Mocks {
	using System.Runtime.Serialization;
	using DotNetOAuth.Messaging.Reflection;

	[DataContract(Namespace = Protocol.DataContractNamespaceV10)]
	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; }
	}
}