mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-29 09:22:25 +00:00
3345f76fc9
* Added a convention test to detect a model constructor exposing all properties * add ctors to classes where they are missing * rename ctor parameters that dont match properties * add missing parameters to existing ctors * add specific PunchCard ctor to allow mocking, and update test to resolve call ambiguity * Added base class properties to the convention test Added member exclusion attribute * Updated newly offending classes 2 excludes and 2 ctors * rename exclusion attribute to be a bit shorter
26 lines
580 B
C#
26 lines
580 B
C#
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class RenameInfo
|
|
{
|
|
public RenameInfo() { }
|
|
|
|
public RenameInfo(string from, string to)
|
|
{
|
|
From = from;
|
|
To = to;
|
|
}
|
|
|
|
public string From { get; protected set; }
|
|
public string To { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get { return string.Format(CultureInfo.InvariantCulture, "From: {0} To: {1}", From, To); }
|
|
}
|
|
}
|
|
}
|