diff --git a/src/redmine-net-api/Types/Attachment.cs b/src/redmine-net-api/Types/Attachment.cs
index 0fa66eb9..49b6476c 100644
--- a/src/redmine-net-api/Types/Attachment.cs
+++ b/src/redmine-net-api/Types/Attachment.cs
@@ -256,16 +256,7 @@ public override int GetHashCode()
}
#endregion
- private string DebuggerDisplay =>
- $@"[{nameof(Attachment)}:
-{ToString()},
-FileName={FileName},
-FileSize={FileSize.ToString(CultureInfo.InvariantCulture)},
-ContentType={ContentType},
-Description={Description},
-ContentUrl={ContentUrl},
-Author={Author},
-CreatedOn={CreatedOn?.ToString("u", CultureInfo.InvariantCulture)}]";
+ private string DebuggerDisplay =>$"[Attachment: Id={Id.ToInvariantString()}, FileName={FileName}, FileSize={FileSize.ToInvariantString()}]";
///
///
diff --git a/src/redmine-net-api/Types/ChangeSet.cs b/src/redmine-net-api/Types/ChangeSet.cs
index c7fddae5..be873273 100644
--- a/src/redmine-net-api/Types/ChangeSet.cs
+++ b/src/redmine-net-api/Types/ChangeSet.cs
@@ -232,12 +232,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay =>
- $@"[{nameof(ChangeSet)}:
-Revision={Revision.ToString(CultureInfo.InvariantCulture)},
-User='{User}',
-CommittedOn={CommittedOn?.ToString("u", CultureInfo.InvariantCulture)},
-Comments='{Comments}']";
+ private string DebuggerDisplay => $" ChangeSet: Revision={Revision}, CommittedOn={CommittedOn?.ToString("u", CultureInfo.InvariantCulture)}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/CustomField.cs b/src/redmine-net-api/Types/CustomField.cs
index b6761b32..c99a1490 100644
--- a/src/redmine-net-api/Types/CustomField.cs
+++ b/src/redmine-net-api/Types/CustomField.cs
@@ -290,22 +290,6 @@ public override int GetHashCode()
}
#endregion
- private string DebuggerDisplay =>
- $@"[{nameof(CustomField)}: {ToString()}
-, CustomizedType={CustomizedType}
-, Description={Description}
-, FieldFormat={FieldFormat}
-, Regexp={Regexp}
-, MinLength={MinLength?.ToString(CultureInfo.InvariantCulture)}
-, MaxLength={MaxLength?.ToString(CultureInfo.InvariantCulture)}
-, IsRequired={IsRequired.ToString(CultureInfo.InvariantCulture)}
-, IsFilter={IsFilter.ToString(CultureInfo.InvariantCulture)}
-, Searchable={Searchable.ToString(CultureInfo.InvariantCulture)}
-, Multiple={Multiple.ToString(CultureInfo.InvariantCulture)}
-, DefaultValue={DefaultValue}
-, Visible={Visible.ToString(CultureInfo.InvariantCulture)}
-, PossibleValues={PossibleValues.Dump()}
-, Trackers={Trackers.Dump()}
-, Roles={Roles.Dump()}]";
+ private string DebuggerDisplay => $"[CustomField: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/CustomFieldPossibleValue.cs b/src/redmine-net-api/Types/CustomFieldPossibleValue.cs
index 6d972c4a..4a8854f7 100644
--- a/src/redmine-net-api/Types/CustomFieldPossibleValue.cs
+++ b/src/redmine-net-api/Types/CustomFieldPossibleValue.cs
@@ -192,7 +192,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(CustomFieldPossibleValue)}: Label:{Label}, Value:{Value}]";
+ private string DebuggerDisplay => $"[CustomFieldPossibleValue: Label:{Label}, Value:{Value}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/CustomFieldRole.cs b/src/redmine-net-api/Types/CustomFieldRole.cs
index d870a5f9..bfffbc71 100644
--- a/src/redmine-net-api/Types/CustomFieldRole.cs
+++ b/src/redmine-net-api/Types/CustomFieldRole.cs
@@ -16,6 +16,7 @@ limitations under the License.
using System.Diagnostics;
using System.Xml.Serialization;
+using Redmine.Net.Api.Extensions;
namespace Redmine.Net.Api.Types
{
@@ -41,7 +42,7 @@ internal CustomFieldRole(int id, string name)
///
///
///
- private string DebuggerDisplay => $"[{nameof(CustomFieldRole)}: {ToString()}]";
+ private string DebuggerDisplay => $"[CustomFieldRole: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/CustomFieldValue.cs b/src/redmine-net-api/Types/CustomFieldValue.cs
index de3f4fdd..32a70959 100644
--- a/src/redmine-net-api/Types/CustomFieldValue.cs
+++ b/src/redmine-net-api/Types/CustomFieldValue.cs
@@ -217,6 +217,6 @@ public CustomFieldValue Clone(bool resetId)
///
///
///
- private string DebuggerDisplay => $"[{nameof(CustomFieldValue)}: {Info}]";
+ private string DebuggerDisplay => $"[CustomFieldValue: {Info}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Detail.cs b/src/redmine-net-api/Types/Detail.cs
index 73468a6f..b4738792 100644
--- a/src/redmine-net-api/Types/Detail.cs
+++ b/src/redmine-net-api/Types/Detail.cs
@@ -251,7 +251,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(Detail)}: Property={Property}, Name={Name}, OldValue={OldValue}, NewValue={NewValue}]";
+ private string DebuggerDisplay => $"[Detail: Property={Property}, Name={Name}, OldValue={OldValue}, NewValue={NewValue}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/DocumentCategory.cs b/src/redmine-net-api/Types/DocumentCategory.cs
index 745f695c..4e01bc96 100644
--- a/src/redmine-net-api/Types/DocumentCategory.cs
+++ b/src/redmine-net-api/Types/DocumentCategory.cs
@@ -193,7 +193,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(DocumentCategory)}, IsDefault={IsDefault.ToString(CultureInfo.InvariantCulture)}, IsActive={IsActive.ToString(CultureInfo.InvariantCulture)}]";
+ private string DebuggerDisplay => $"[DocumentCategory: Id={Id.ToInvariantString()}, Name={Name}, IsDefault={IsDefault.ToInvariantString()}, IsActive={IsActive.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Error.cs b/src/redmine-net-api/Types/Error.cs
index 06128f72..f5285573 100644
--- a/src/redmine-net-api/Types/Error.cs
+++ b/src/redmine-net-api/Types/Error.cs
@@ -176,7 +176,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(Error)}: {Info}]";
+ private string DebuggerDisplay => $"[Error: {Info}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/File.cs b/src/redmine-net-api/Types/File.cs
index 874044b8..f4f09e30 100644
--- a/src/redmine-net-api/Types/File.cs
+++ b/src/redmine-net-api/Types/File.cs
@@ -283,7 +283,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(File)}: {ToString()}, Name={Filename}]";
+ private string DebuggerDisplay => $"[File: {Id.ToInvariantString()}, Name={Filename}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Group.cs b/src/redmine-net-api/Types/Group.cs
index ef097986..27bc3773 100644
--- a/src/redmine-net-api/Types/Group.cs
+++ b/src/redmine-net-api/Types/Group.cs
@@ -227,7 +227,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(Group)}: {ToString()}, Users={Users.Dump()}, CustomFields={CustomFields.Dump()}, Memberships={Memberships.Dump()}]";
+ private string DebuggerDisplay => $"[Group: Id={Id.ToInvariantString()}, Name={Name}]";
///
diff --git a/src/redmine-net-api/Types/GroupUser.cs b/src/redmine-net-api/Types/GroupUser.cs
index 6b622f51..598e9462 100644
--- a/src/redmine-net-api/Types/GroupUser.cs
+++ b/src/redmine-net-api/Types/GroupUser.cs
@@ -17,6 +17,7 @@ limitations under the License.
using System.Diagnostics;
using System.Globalization;
using System.Xml.Serialization;
+using Redmine.Net.Api.Extensions;
namespace Redmine.Net.Api.Types
{
@@ -38,7 +39,7 @@ public sealed class GroupUser : IdentifiableName, IValue
///
///
///
- private string DebuggerDisplay => $"[{nameof(GroupUser)}: {ToString()}]";
+ private string DebuggerDisplay => $"[GroupUser: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Identifiable.cs b/src/redmine-net-api/Types/Identifiable.cs
index 0da0cb0d..02307d1d 100644
--- a/src/redmine-net-api/Types/Identifiable.cs
+++ b/src/redmine-net-api/Types/Identifiable.cs
@@ -21,6 +21,7 @@ limitations under the License.
using System.Xml.Schema;
using System.Xml.Serialization;
using Newtonsoft.Json;
+using Redmine.Net.Api.Extensions;
using Redmine.Net.Api.Internals;
using Redmine.Net.Api.Serialization;
using NotImplementedException = System.NotImplementedException;
@@ -157,7 +158,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"Id={Id.ToString(CultureInfo.InvariantCulture)}";
+ private string DebuggerDisplay => $"Id={Id.ToInvariantString()}";
///
///
diff --git a/src/redmine-net-api/Types/IdentifiableName.cs b/src/redmine-net-api/Types/IdentifiableName.cs
index f17348b0..2a985283 100644
--- a/src/redmine-net-api/Types/IdentifiableName.cs
+++ b/src/redmine-net-api/Types/IdentifiableName.cs
@@ -224,7 +224,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(IdentifiableName)}: {base.ToString()}, Name={Name}]";
+ private string DebuggerDisplay => $"[IdentifiableName: Id={Id.ToInvariantString()}, Name={Name}]";
///
///
diff --git a/src/redmine-net-api/Types/Issue.cs b/src/redmine-net-api/Types/Issue.cs
index 1e17007d..14f55a6f 100644
--- a/src/redmine-net-api/Types/Issue.cs
+++ b/src/redmine-net-api/Types/Issue.cs
@@ -650,30 +650,6 @@ public IdentifiableName AsParent()
///
///
///
- private string DebuggerDisplay =>
- $@"[{nameof(Issue)}: {ToString()}, Project={Project}, Tracker={Tracker}, Status={Status},
-Priority={Priority}, Author={Author}, Category={Category}, Subject={Subject}, Description={Description},
-StartDate={StartDate?.ToString("u", CultureInfo.InvariantCulture)},
-DueDate={DueDate?.ToString("u", CultureInfo.InvariantCulture)},
-DoneRatio={DoneRatio?.ToString("F", CultureInfo.InvariantCulture)},
-PrivateNotes={PrivateNotes.ToString(CultureInfo.InvariantCulture)},
-EstimatedHours={EstimatedHours?.ToString("F", CultureInfo.InvariantCulture)},
-SpentHours={SpentHours?.ToString("F", CultureInfo.InvariantCulture)},
-CustomFields={CustomFields.Dump()},
-CreatedOn={CreatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-UpdatedOn={UpdatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-ClosedOn={ClosedOn?.ToString("u", CultureInfo.InvariantCulture)},
-Notes={Notes},
-AssignedTo={AssignedTo},
-ParentIssue={ParentIssue},
-FixedVersion={FixedVersion},
-IsPrivate={IsPrivate.ToString(CultureInfo.InvariantCulture)},
-Journals={Journals.Dump()},
-ChangeSets={ChangeSets.Dump()},
-Attachments={Attachments.Dump()},
-Relations={Relations.Dump()},
-Children={Children.Dump()},
-Uploads={Uploads.Dump()},
-Watchers={Watchers.Dump()}]";
+ private string DebuggerDisplay => $"[Issue:Id={Id.ToInvariantString()}, Status={Status?.Name}, Priority={Priority?.Name}, DoneRatio={DoneRatio?.ToString("F", CultureInfo.InvariantCulture)},IsPrivate={IsPrivate.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/IssueAllowedStatus.cs b/src/redmine-net-api/Types/IssueAllowedStatus.cs
index 8cc7af61..9a47811a 100644
--- a/src/redmine-net-api/Types/IssueAllowedStatus.cs
+++ b/src/redmine-net-api/Types/IssueAllowedStatus.cs
@@ -129,6 +129,6 @@ public override int GetHashCode()
return !Equals(left, right);
}
- private string DebuggerDisplay => $"[{nameof(IssueAllowedStatus)}: {ToString()}]";
+ private string DebuggerDisplay => $"[IssueAllowedStatus: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/IssueCategory.cs b/src/redmine-net-api/Types/IssueCategory.cs
index 2fc6bfe0..39c5781c 100644
--- a/src/redmine-net-api/Types/IssueCategory.cs
+++ b/src/redmine-net-api/Types/IssueCategory.cs
@@ -209,7 +209,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(IssueCategory)}: {ToString()}, Project={Project}, AssignTo={AssignTo}, Name={Name}]";
+ private string DebuggerDisplay => $"[IssueCategory: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/IssueChild.cs b/src/redmine-net-api/Types/IssueChild.cs
index 7a9aeeb5..b6d3fcf1 100644
--- a/src/redmine-net-api/Types/IssueChild.cs
+++ b/src/redmine-net-api/Types/IssueChild.cs
@@ -191,6 +191,6 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(IssueChild)}: {ToString()}, Tracker={Tracker}, Subject={Subject}]";
+ private string DebuggerDisplay => $"[IssueChild: Id={Id.ToInvariantString()}]";
}
}
diff --git a/src/redmine-net-api/Types/IssueCustomField.cs b/src/redmine-net-api/Types/IssueCustomField.cs
index 5a77e3e7..da8935c9 100644
--- a/src/redmine-net-api/Types/IssueCustomField.cs
+++ b/src/redmine-net-api/Types/IssueCustomField.cs
@@ -325,6 +325,6 @@ public static string GetValue(object item)
///
///
///
- private string DebuggerDisplay => $"[{nameof(IssueCustomField)}: {ToString()} Values={Values.Dump()}, Multiple={Multiple.ToString(CultureInfo.InvariantCulture)}]";
+ private string DebuggerDisplay => $"[IssueCustomField: Id={Id.ToInvariantString()}, Name={Name}, Multiple={Multiple.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/IssuePriority.cs b/src/redmine-net-api/Types/IssuePriority.cs
index 877d3e31..82522462 100644
--- a/src/redmine-net-api/Types/IssuePriority.cs
+++ b/src/redmine-net-api/Types/IssuePriority.cs
@@ -176,7 +176,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[IssuePriority: {ToString()}, IsDefault={IsDefault.ToString(CultureInfo.InvariantCulture)}, IsActive={IsActive.ToString(CultureInfo.InvariantCulture)}]";
+ private string DebuggerDisplay => $"[IssuePriority: Id={Id.ToInvariantString()},Name={Name}, IsDefault={IsDefault.ToInvariantString()},IsActive={IsActive.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/IssueRelation.cs b/src/redmine-net-api/Types/IssueRelation.cs
index 5a80bd4c..f5b254c6 100644
--- a/src/redmine-net-api/Types/IssueRelation.cs
+++ b/src/redmine-net-api/Types/IssueRelation.cs
@@ -283,11 +283,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $@"[{nameof(IssueRelation)}: {ToString()},
-IssueId={IssueId.ToString(CultureInfo.InvariantCulture)},
-IssueToId={IssueToId.ToString(CultureInfo.InvariantCulture)},
-Type={Type:G},
-Delay={Delay?.ToString(CultureInfo.InvariantCulture)}]";
+ private string DebuggerDisplay => $"[IssueRelation: Id={Id.ToInvariantString()}, IssueId={IssueId.ToInvariantString()}, Type={Type:G}, Delay={Delay?.ToInvariantString()}]";
///
///
diff --git a/src/redmine-net-api/Types/IssueStatus.cs b/src/redmine-net-api/Types/IssueStatus.cs
index 632f48ef..25d2a30a 100644
--- a/src/redmine-net-api/Types/IssueStatus.cs
+++ b/src/redmine-net-api/Types/IssueStatus.cs
@@ -238,7 +238,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(IssueStatus)}: {ToString()}, IsDefault={IsDefault.ToString(CultureInfo.InvariantCulture)}, IsClosed={IsClosed.ToString(CultureInfo.InvariantCulture)}]";
+ private string DebuggerDisplay => $"[IssueStatus: Id={Id.ToInvariantString()}, Name={Name}, IsDefault={IsDefault.ToInvariantString()}, IsClosed={IsClosed.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Journal.cs b/src/redmine-net-api/Types/Journal.cs
index da2234a7..bf016b1b 100644
--- a/src/redmine-net-api/Types/Journal.cs
+++ b/src/redmine-net-api/Types/Journal.cs
@@ -251,7 +251,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(Journal)}: {ToString()}, User={User}, Notes={Notes}, CreatedOn={CreatedOn?.ToString("u", CultureInfo.InvariantCulture)}, Details={Details.Dump()}]";
+ private string DebuggerDisplay => $"[Journal: Id={Id.ToInvariantString()}, CreatedOn={CreatedOn?.ToString("u", CultureInfo.InvariantCulture)}]";
///
///
diff --git a/src/redmine-net-api/Types/Membership.cs b/src/redmine-net-api/Types/Membership.cs
index 84443fe7..4b563614 100644
--- a/src/redmine-net-api/Types/Membership.cs
+++ b/src/redmine-net-api/Types/Membership.cs
@@ -186,6 +186,6 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(Membership)}: {ToString()}, Group={Group}, Project={Project}, User={User}, Roles={Roles.Dump()}]";
+ private string DebuggerDisplay => $"[Membership: Id={Id.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/MembershipRole.cs b/src/redmine-net-api/Types/MembershipRole.cs
index 06770cb9..1de8fbfc 100644
--- a/src/redmine-net-api/Types/MembershipRole.cs
+++ b/src/redmine-net-api/Types/MembershipRole.cs
@@ -179,7 +179,6 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[MembershipRole: {ToString()}, Inherited={Inherited.ToString(CultureInfo.InvariantCulture)}]";
-
+ private string DebuggerDisplay => $"[MembershipRole: Id={Id.ToInvariantString()}, Name={Name}, Inherited={Inherited.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/MyAccount.cs b/src/redmine-net-api/Types/MyAccount.cs
index 86c4bead..806123b4 100644
--- a/src/redmine-net-api/Types/MyAccount.cs
+++ b/src/redmine-net-api/Types/MyAccount.cs
@@ -252,16 +252,6 @@ public override int GetHashCode()
return !Equals(left, right);
}
- private string DebuggerDisplay => $@"[ {nameof(MyAccount)}:
-Id={Id.ToString(CultureInfo.InvariantCulture)},
-Login={Login},
-ApiKey={ApiKey},
-FirstName={FirstName},
-LastName={LastName},
-Email={Email},
-IsAdmin={IsAdmin.ToString(CultureInfo.InvariantCulture).ToLowerInv()},
-CreatedOn={CreatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-LastLoginOn={LastLoginOn?.ToString("u", CultureInfo.InvariantCulture)},
-CustomFields={CustomFields.Dump()}]";
+ private string DebuggerDisplay => $"[MyAccount: Id={Id.ToInvariantString()}, Login={Login}, IsAdmin={IsAdmin.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/MyAccountCustomField.cs b/src/redmine-net-api/Types/MyAccountCustomField.cs
index 5e895a7c..55372989 100644
--- a/src/redmine-net-api/Types/MyAccountCustomField.cs
+++ b/src/redmine-net-api/Types/MyAccountCustomField.cs
@@ -168,7 +168,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(MyAccountCustomField)}: {ToString()}, Value: {Value}]";
+ private string DebuggerDisplay => $"[MyAccountCustomField: Id={Id.ToInvariantString()}, Name={Name}, Value: {Value}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/News.cs b/src/redmine-net-api/Types/News.cs
index e8a9866f..78280368 100644
--- a/src/redmine-net-api/Types/News.cs
+++ b/src/redmine-net-api/Types/News.cs
@@ -282,7 +282,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(News)}: {ToString()}, Project={Project}, Author={Author}, Title={Title}, Summary={Summary}, Description={Description}, CreatedOn={CreatedOn?.ToString("u", CultureInfo.InvariantCulture)}]";
+ private string DebuggerDisplay => $"[News: Id={Id.ToInvariantString()}, Title={Title}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/NewsComment.cs b/src/redmine-net-api/Types/NewsComment.cs
index 567c1b7f..86eca5ed 100644
--- a/src/redmine-net-api/Types/NewsComment.cs
+++ b/src/redmine-net-api/Types/NewsComment.cs
@@ -19,6 +19,7 @@ limitations under the License.
using System.Xml;
using System.Xml.Serialization;
using Newtonsoft.Json;
+using Redmine.Net.Api.Extensions;
using Redmine.Net.Api.Internals;
namespace Redmine.Net.Api.Types
@@ -157,9 +158,6 @@ public override int GetHashCode()
return !Equals(left, right);
}
- private string DebuggerDisplay => $@"[{nameof(IssueAllowedStatus)}: {ToString()},
-{nameof(NewsComment)}: {ToString()},
-Author={Author},
-CONTENT={Content}]";
+ private string DebuggerDisplay => $"[NewsComment: Id={Id.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Permission.cs b/src/redmine-net-api/Types/Permission.cs
index 9f2de487..8d300411 100644
--- a/src/redmine-net-api/Types/Permission.cs
+++ b/src/redmine-net-api/Types/Permission.cs
@@ -155,7 +155,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(Permission)}: {Info}]";
+ private string DebuggerDisplay => $"[Permission: {Info}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Project.cs b/src/redmine-net-api/Types/Project.cs
index f3e327c0..798ab732 100644
--- a/src/redmine-net-api/Types/Project.cs
+++ b/src/redmine-net-api/Types/Project.cs
@@ -397,23 +397,6 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay =>
- $@"[Project: {ToString()},
-Identifier={Identifier},
-Description={Description},
-Parent={Parent},
-HomePage={HomePage},
-CreatedOn={CreatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-UpdatedOn={UpdatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-Status={Status:G},
-IsPublic={IsPublic.ToString(CultureInfo.InvariantCulture)},
-InheritMembers={InheritMembers.ToString(CultureInfo.InvariantCulture)},
-DefaultAssignee={DefaultAssignee},
-DefaultVersion={DefaultVersion},
-Trackers={Trackers.Dump()},
-CustomFields={CustomFields.Dump()},
-IssueCategories={IssueCategories.Dump()},
-EnabledModules={EnabledModules.Dump()},
-TimeEntryActivities = {TimeEntryActivities.Dump()}]";
+ private string DebuggerDisplay => $"[Project: Id={Id.ToInvariantString()}, Name={Name}, Identifier={Identifier}, Status={Status:G}, IsPublic={IsPublic.ToInvariantString()}]";
}
}
diff --git a/src/redmine-net-api/Types/ProjectEnabledModule.cs b/src/redmine-net-api/Types/ProjectEnabledModule.cs
index e90971a8..02d7f60c 100644
--- a/src/redmine-net-api/Types/ProjectEnabledModule.cs
+++ b/src/redmine-net-api/Types/ProjectEnabledModule.cs
@@ -62,7 +62,7 @@ public ProjectEnabledModule(string moduleName)
///
///
///
- private string DebuggerDisplay => $"[{nameof(ProjectEnabledModule)}: {ToString()}]";
+ private string DebuggerDisplay => $"[ProjectEnabledModule: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/ProjectIssueCategory.cs b/src/redmine-net-api/Types/ProjectIssueCategory.cs
index 76958c50..2ef3b006 100644
--- a/src/redmine-net-api/Types/ProjectIssueCategory.cs
+++ b/src/redmine-net-api/Types/ProjectIssueCategory.cs
@@ -16,6 +16,7 @@ limitations under the License.
using System.Diagnostics;
using System.Xml.Serialization;
+using Redmine.Net.Api.Extensions;
namespace Redmine.Net.Api.Types
{
@@ -40,7 +41,7 @@ internal ProjectIssueCategory(int id, string name)
///
///
///
- private string DebuggerDisplay => $"[{nameof(ProjectIssueCategory)}: {ToString()}]";
+ private string DebuggerDisplay => $"[ProjectIssueCategory: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/ProjectMembership.cs b/src/redmine-net-api/Types/ProjectMembership.cs
index 9979ab64..cd0cb010 100644
--- a/src/redmine-net-api/Types/ProjectMembership.cs
+++ b/src/redmine-net-api/Types/ProjectMembership.cs
@@ -225,7 +225,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(ProjectMembership)}: {ToString()}, Project={Project}, User={User}, Group={Group}, Roles={Roles.Dump()}]";
+ private string DebuggerDisplay => $"[ProjectMembership: Id={Id.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/ProjectTimeEntryActivity.cs b/src/redmine-net-api/Types/ProjectTimeEntryActivity.cs
index 69daaca1..eded97b3 100644
--- a/src/redmine-net-api/Types/ProjectTimeEntryActivity.cs
+++ b/src/redmine-net-api/Types/ProjectTimeEntryActivity.cs
@@ -16,6 +16,7 @@ limitations under the License.
using System.Diagnostics;
using System.Xml.Serialization;
+using Redmine.Net.Api.Extensions;
namespace Redmine.Net.Api.Types
{
@@ -40,7 +41,7 @@ internal ProjectTimeEntryActivity(int id, string name)
///
///
///
- private string DebuggerDisplay => $"[{nameof(ProjectTimeEntryActivity)}: {ToString()}]";
+ private string DebuggerDisplay => $"[ProjectTimeEntryActivity: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/ProjectTracker.cs b/src/redmine-net-api/Types/ProjectTracker.cs
index fa5a2533..fa026ee7 100644
--- a/src/redmine-net-api/Types/ProjectTracker.cs
+++ b/src/redmine-net-api/Types/ProjectTracker.cs
@@ -17,6 +17,7 @@ limitations under the License.
using System.Diagnostics;
using System.Globalization;
using System.Xml.Serialization;
+using Redmine.Net.Api.Extensions;
namespace Redmine.Net.Api.Types
{
@@ -64,7 +65,7 @@ internal ProjectTracker(int trackerId)
///
///
///
- private string DebuggerDisplay => $"[{nameof(ProjectTracker)}: {ToString()}]";
+ private string DebuggerDisplay => $"[ProjectTracker: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Query.cs b/src/redmine-net-api/Types/Query.cs
index 2506982c..09dc4f56 100644
--- a/src/redmine-net-api/Types/Query.cs
+++ b/src/redmine-net-api/Types/Query.cs
@@ -176,6 +176,6 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(Query)}: {ToString()}, IsPublic={IsPublic.ToString(CultureInfo.InvariantCulture)}, ProjectId={ProjectId?.ToString(CultureInfo.InvariantCulture)}]";
+ private string DebuggerDisplay => $"[Query: Id={Id.ToInvariantString()}, Name={Name}, IsPublic={IsPublic.ToInvariantString()}, ProjectId={ProjectId?.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Role.cs b/src/redmine-net-api/Types/Role.cs
index a922fff5..fd9dbab2 100644
--- a/src/redmine-net-api/Types/Role.cs
+++ b/src/redmine-net-api/Types/Role.cs
@@ -205,7 +205,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(Role)}: {ToString()}, Permissions={Permissions}]";
+ private string DebuggerDisplay => $"[Role: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Search.cs b/src/redmine-net-api/Types/Search.cs
index c17f8367..a0ec1835 100644
--- a/src/redmine-net-api/Types/Search.cs
+++ b/src/redmine-net-api/Types/Search.cs
@@ -182,6 +182,6 @@ public override int GetHashCode()
return !Equals(left, right);
}
- private string DebuggerDisplay => $@"[{nameof(Search)}:Id={Id.ToString(CultureInfo.InvariantCulture)},Title={Title},Type={Type},Url={Url},Description={Description}, DateTime={DateTime?.ToString("u", CultureInfo.InvariantCulture)}]";
+ private string DebuggerDisplay => $"[Search: Id={Id.ToInvariantString()}, Title={Title}, Type={Type}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/TimeEntry.cs b/src/redmine-net-api/Types/TimeEntry.cs
index 5af98492..bdc8cd64 100644
--- a/src/redmine-net-api/Types/TimeEntry.cs
+++ b/src/redmine-net-api/Types/TimeEntry.cs
@@ -325,16 +325,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay =>
- $@"[{nameof(TimeEntry)}: {ToString()}, Issue={Issue}, Project={Project},
-SpentOn={SpentOn?.ToString("u", CultureInfo.InvariantCulture)},
-Hours={Hours.ToString("F", CultureInfo.InvariantCulture)},
-Activity={Activity},
-User={User},
-Comments={Comments},
-CreatedOn={CreatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-UpdatedOn={UpdatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-CustomFields={CustomFields.Dump()}]";
+ private string DebuggerDisplay => $"[TimeEntry: Id={Id.ToInvariantString()}, SpentOn={SpentOn?.ToString("u", CultureInfo.InvariantCulture)}, Hours={Hours.ToString("F", CultureInfo.InvariantCulture)}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/TimeEntryActivity.cs b/src/redmine-net-api/Types/TimeEntryActivity.cs
index 4fd873e3..dc571fff 100644
--- a/src/redmine-net-api/Types/TimeEntryActivity.cs
+++ b/src/redmine-net-api/Types/TimeEntryActivity.cs
@@ -192,7 +192,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(TimeEntryActivity)}:{ToString()}, IsDefault={IsDefault.ToString(CultureInfo.InvariantCulture)}, IsActive={IsActive.ToString(CultureInfo.InvariantCulture)}]";
+ private string DebuggerDisplay => $"[TimeEntryActivity: Id={Id.ToInvariantString()}, Name={Name}, IsDefault={IsDefault.ToInvariantString()}, IsActive={IsActive.ToInvariantString()}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Tracker.cs b/src/redmine-net-api/Types/Tracker.cs
index ded9c388..be916923 100644
--- a/src/redmine-net-api/Types/Tracker.cs
+++ b/src/redmine-net-api/Types/Tracker.cs
@@ -183,6 +183,6 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[{nameof(Tracker)}: {base.ToString()}]";
+ private string DebuggerDisplay => $"[Tracker: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/TrackerCoreField.cs b/src/redmine-net-api/Types/TrackerCoreField.cs
index 54b5f1be..2677a1eb 100644
--- a/src/redmine-net-api/Types/TrackerCoreField.cs
+++ b/src/redmine-net-api/Types/TrackerCoreField.cs
@@ -36,7 +36,7 @@ internal TrackerCoreField(string name)
///
///
///
- private string DebuggerDisplay => $"[{nameof(TrackerCoreField)}: {ToString()}]";
+ private string DebuggerDisplay => $"[TrackerCoreField: Name={Name}]";
///
///
diff --git a/src/redmine-net-api/Types/TrackerCustomField.cs b/src/redmine-net-api/Types/TrackerCustomField.cs
index 5372039b..8464d220 100644
--- a/src/redmine-net-api/Types/TrackerCustomField.cs
+++ b/src/redmine-net-api/Types/TrackerCustomField.cs
@@ -76,7 +76,7 @@ public override void ReadJson(JsonReader reader)
///
///
///
- private string DebuggerDisplay => $"[{nameof(TrackerCustomField)}: {ToString()}]";
+ private string DebuggerDisplay => $"[TrackerCustomField: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Upload.cs b/src/redmine-net-api/Types/Upload.cs
index 3948d5a5..12d57053 100644
--- a/src/redmine-net-api/Types/Upload.cs
+++ b/src/redmine-net-api/Types/Upload.cs
@@ -233,7 +233,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $"[Upload: Token={Token}, FileName={FileName}, ContentType={ContentType}, Description={Description}]";
+ private string DebuggerDisplay => $"[Upload: Token={Token}, FileName={FileName}]";
///
///
diff --git a/src/redmine-net-api/Types/User.cs b/src/redmine-net-api/Types/User.cs
index 481409bd..19679607 100644
--- a/src/redmine-net-api/Types/User.cs
+++ b/src/redmine-net-api/Types/User.cs
@@ -425,27 +425,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay =>
- $@"[{nameof(User)}: {Groups},
-Login={Login}, Password={Password},
-FirstName={FirstName},
-LastName={LastName},
-AvatarUrl={AvatarUrl},
-IsAdmin={IsAdmin.ToString(CultureInfo.InvariantCulture)},
-TwoFactorAuthenticationScheme={TwoFactorAuthenticationScheme}
-Email={Email},
-EmailNotification={MailNotification},
-AuthenticationModeId={AuthenticationModeId?.ToString(CultureInfo.InvariantCulture)},
-CreatedOn={CreatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-UpdatedOn={UpdatedOn?.ToString("u", CultureInfo.InvariantCulture)}
-PasswordChangedOn={PasswordChangedOn?.ToString("u", CultureInfo.InvariantCulture)}
-LastLoginOn={LastLoginOn?.ToString("u", CultureInfo.InvariantCulture)},
-ApiKey={ApiKey},
-Status={Status:G},
-MustChangePassword={MustChangePassword.ToString(CultureInfo.InvariantCulture)},
-CustomFields={CustomFields.Dump()},
-Memberships={Memberships.Dump()},
-Groups={Groups.Dump()}]";
+ private string DebuggerDisplay => $"[User: Id={Id.ToInvariantString()}, Login={Login}, IsAdmin={IsAdmin.ToString(CultureInfo.InvariantCulture)}, Status={Status:G}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/UserGroup.cs b/src/redmine-net-api/Types/UserGroup.cs
index 57c7c0a8..660c9051 100644
--- a/src/redmine-net-api/Types/UserGroup.cs
+++ b/src/redmine-net-api/Types/UserGroup.cs
@@ -16,6 +16,7 @@ limitations under the License.
using System.Diagnostics;
using System.Xml.Serialization;
+using Redmine.Net.Api.Extensions;
namespace Redmine.Net.Api.Types
{
@@ -30,7 +31,7 @@ public sealed class UserGroup : IdentifiableName
///
///
///
- private string DebuggerDisplay => $"[{nameof(UserGroup)}: {ToString()}]";
+ private string DebuggerDisplay => $"[UserGroup: Id={Id.ToInvariantString()}, Name={Name}]";
}
}
\ No newline at end of file
diff --git a/src/redmine-net-api/Types/Version.cs b/src/redmine-net-api/Types/Version.cs
index 78dc24eb..2e4dd096 100644
--- a/src/redmine-net-api/Types/Version.cs
+++ b/src/redmine-net-api/Types/Version.cs
@@ -308,18 +308,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $@"[{nameof(Version)}: {ToString()},
-Project={Project},
-Description={Description},
-Status={Status:G},
-DueDate={DueDate?.ToString("u", CultureInfo.InvariantCulture)},
-Sharing={Sharing:G},
-CreatedOn={CreatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-UpdatedOn={UpdatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-EstimatedHours={EstimatedHours?.ToString("F", CultureInfo.InvariantCulture)},
-SpentHours={SpentHours?.ToString("F", CultureInfo.InvariantCulture)},
-WikiPageTitle={WikiPageTitle}
-CustomFields={CustomFields.Dump()}]";
+ private string DebuggerDisplay => $"[Version: Id={Id.ToInvariantString()}, Name={Name}, Status={Status:G}]";
}
}
diff --git a/src/redmine-net-api/Types/WikiPage.cs b/src/redmine-net-api/Types/WikiPage.cs
index b2879278..76125cef 100644
--- a/src/redmine-net-api/Types/WikiPage.cs
+++ b/src/redmine-net-api/Types/WikiPage.cs
@@ -17,7 +17,6 @@ limitations under the License.
using System;
using System.Collections.Generic;
using System.Diagnostics;
-using System.Globalization;
using System.Xml;
using System.Xml.Serialization;
using Newtonsoft.Json;
@@ -288,12 +287,7 @@ public override int GetHashCode()
///
///
///
- private string DebuggerDisplay => $@"[{nameof(WikiPage)}: {ToString()}, Title={Title}, Text={Text}, Comments={Comments},
-Version={Version.ToString(CultureInfo.InvariantCulture)},
-Author={Author},
-CreatedOn={CreatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-UpdatedOn={UpdatedOn?.ToString("u", CultureInfo.InvariantCulture)},
-Attachments={Attachments.Dump()}]";
+ private string DebuggerDisplay => $"[WikiPage: Id={Id.ToInvariantString()}, Title={Title}]";
}
}
\ No newline at end of file