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

namespace DotNetOAuth.Test.Mocks {
	using System.Runtime.Serialization;
	using DotNetOAuth.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; }
	}
}