diff --git a/Octokit/Models/Request/IssueUpdate.cs b/Octokit/Models/Request/IssueUpdate.cs
index 0265e5fd..b1da00a9 100644
--- a/Octokit/Models/Request/IssueUpdate.cs
+++ b/Octokit/Models/Request/IssueUpdate.cs
@@ -1,7 +1,11 @@
-using System.Collections.ObjectModel;
+using System;
+using System.Collections.ObjectModel;
+using System.Diagnostics;
+using System.Globalization;
namespace Octokit
{
+ [DebuggerDisplay("{DebuggerDisplay,nq}")]
public class IssueUpdate
{
public IssueUpdate()
@@ -48,5 +52,13 @@ namespace Octokit
/// Whether the issue is open or closed.
///
public ItemState State { get; set; }
+
+ internal string DebuggerDisplay
+ {
+ get
+ {
+ return String.Format(CultureInfo.InvariantCulture, "Title: {0}",Title);
+ }
+ }
}
}
diff --git a/Octokit/Models/Request/NewBlob.cs b/Octokit/Models/Request/NewBlob.cs
index 8fd39c2f..abb15c93 100644
--- a/Octokit/Models/Request/NewBlob.cs
+++ b/Octokit/Models/Request/NewBlob.cs
@@ -1,5 +1,10 @@
-namespace Octokit
+using System;
+using System.Diagnostics;
+using System.Globalization;
+
+namespace Octokit
{
+ [DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewBlob
{
///
@@ -11,5 +16,13 @@
/// The encoding of the blob.
///
public EncodingType Encoding { get; set; }
+
+ internal string DebuggerDisplay
+ {
+ get
+ {
+ return String.Format(CultureInfo.InvariantCulture, "Encoding: {0}", Encoding);
+ }
+ }
}
}
\ No newline at end of file
diff --git a/Octokit/Models/Request/NewCommit.cs b/Octokit/Models/Request/NewCommit.cs
index e13311e2..a918e6c7 100644
--- a/Octokit/Models/Request/NewCommit.cs
+++ b/Octokit/Models/Request/NewCommit.cs
@@ -1,8 +1,12 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Globalization;
using System.Linq;
namespace Octokit
{
+ [DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewCommit
{
///
@@ -45,5 +49,13 @@ namespace Octokit
public Signature Author { get; set; }
public Signature Committer { get; set; }
+
+ internal string DebuggerDisplay
+ {
+ get
+ {
+ return String.Format(CultureInfo.InvariantCulture, "Message: {0}", Message);
+ }
+ }
}
}
\ No newline at end of file
diff --git a/Octokit/Models/Request/NewCommitStatus.cs b/Octokit/Models/Request/NewCommitStatus.cs
index 711a282b..37fc0701 100644
--- a/Octokit/Models/Request/NewCommitStatus.cs
+++ b/Octokit/Models/Request/NewCommitStatus.cs
@@ -1,7 +1,10 @@
using System;
+using System.Diagnostics;
+using System.Globalization;
namespace Octokit
{
+ [DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewCommitStatus
{
///
@@ -20,5 +23,13 @@ namespace Octokit
/// Short description of the status.
///
public string Description { get; set; }
+
+ internal string DebuggerDisplay
+ {
+ get
+ {
+ return String.Format(CultureInfo.InvariantCulture, "Description: {0}", Description);
+ }
+ }
}
}
diff --git a/Octokit/Models/Request/NewPullRequest.cs b/Octokit/Models/Request/NewPullRequest.cs
index 10748605..fc80764a 100644
--- a/Octokit/Models/Request/NewPullRequest.cs
+++ b/Octokit/Models/Request/NewPullRequest.cs
@@ -1,10 +1,13 @@
using System;
+using System.Diagnostics;
+using System.Globalization;
namespace Octokit
{
///
/// Describes a new pull request to create via the method.
///
+ [DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewPullRequest
{
public NewPullRequest(string title, string head, string baseRef)
@@ -37,5 +40,13 @@ namespace Octokit
/// Body of the pull request (optional)
///
public string Body { get; set; }
+
+ internal string DebuggerDisplay
+ {
+ get
+ {
+ return String.Format(CultureInfo.InvariantCulture, "Title: {0}", Title);
+ }
+ }
}
}
diff --git a/Octokit/Models/Request/NewTree.cs b/Octokit/Models/Request/NewTree.cs
index 78e18588..97b6e940 100644
--- a/Octokit/Models/Request/NewTree.cs
+++ b/Octokit/Models/Request/NewTree.cs
@@ -1,9 +1,13 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using System.Collections.ObjectModel;
+using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
+using System.Globalization;
namespace Octokit
{
+ [DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewTree
{
public NewTree()
@@ -21,5 +25,13 @@ namespace Octokit
///
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public ICollection Tree { get; set; }
+
+ internal string DebuggerDisplay
+ {
+ get
+ {
+ return String.Format(CultureInfo.InvariantCulture, "BaseTree: {0}", BaseTree);
+ }
+ }
}
}
\ No newline at end of file
diff --git a/Octokit/Models/Response/Activity.cs b/Octokit/Models/Response/Activity.cs
index 77d61b82..d4b745ac 100644
--- a/Octokit/Models/Response/Activity.cs
+++ b/Octokit/Models/Response/Activity.cs
@@ -1,13 +1,17 @@
using System;
+using System.Diagnostics;
+using System.Diagnostics.CodeAnalysis;
+using System.Globalization;
namespace Octokit
{
+ [DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Activity
{
///
/// The type of the activity.
///
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
+ [SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
public string Type { get; set; }
///
@@ -39,5 +43,13 @@ namespace Octokit
/// The activity event Id.
///
public string Id { get; set; }
+
+ internal string DebuggerDisplay
+ {
+ get
+ {
+ return String.Format(CultureInfo.InvariantCulture, "Type: {0}", Type);
+ }
+ }
}
}
\ No newline at end of file