public override string ToString()
 {
     return(ToStringFormatter.Format(
                subject: this,
                stringParts: StringPartBuilder <DomainEntity <TKey> >
                .StartWith(de => de.Id.ToString())
                .Build()
                ));
 }
        /// <summary>
        ///     Convert this object to a human readable string.
        /// </summary>
        /// <returns>A string representation of the object.</returns>
        public override String ToString()
        {
            ToStringFormatter formatter = new ToStringFormatter("PathTranslator");

            formatter.AddProperty("cvsRoot", cvsRoot);
            formatter.AddProperty("repositoryPath=[", this.repositoryPath);
            formatter.AddProperty("relativePath", relativePath);

            return(formatter.ToString());
        }
Beispiel #3
0
 public override string ToString()
 {
     return(ToStringFormatter.Format(
                subject: this,
                stringParts: StringPartBuilder <Person>
                .StartWith(p => p.Id.ToString())
                .And(p => $"{p.FirstName} {p.LastName}")
                .Build()
                ));
 }
Beispiel #4
0
 public override string ToString()
 {
     return(ToStringFormatter.Format(
                subject: this,
                stringParts: StringPartBuilder <Relation>
                .StartWith(r => r.Id.ToString())
                .And(r => r.Type.ToString())
                .And(r => $"M: {r.MasterId.ToString()}")
                .And(r => $"S: {r.SlaveId.ToString()}")
                .Build()
                ));
 }
Beispiel #5
0
        /// <summary>
        /// Converts the object values into a human readable string.
        /// </summary>
        /// <returns>A string representation of the object.</returns>
        public override string ToString()
        {
            ToStringFormatter formatter =
                new ToStringFormatter("Abstract Request");

            formatter.AddProperty("DoesModifyConnection", this.DoesModifyConnection);
            formatter.AddProperty("DoesModifyInputStream", this.DoesModifyInputStream);
            formatter.AddProperty("IsResponseExpected", this.IsResponseExpected);
            formatter.AddProperty("RequestString", this.RequestString);

            return(formatter.ToString());
        }
        /// <summary>
        ///     Render the object as a human readable string.
        /// </summary>
        public override String ToString()
        {
            ToStringFormatter formatter =
                new ToStringFormatter("WorkingDirectory");

            formatter.AddProperty("cvsRoot", cvsroot);
            formatter.AddProperty("localdirectory", localDir.FullName);
            formatter.AddProperty("repositoryname", repositoryname);
            formatter.AddProperty("revision", revision);
            formatter.AddProperty("overrideDirectory", overrideDirectory);
            formatter.AddProperty("WorkingDirectoryName", WorkingDirectoryName);
            formatter.AddProperty("WorkingPath", WorkingPath);

            return(formatter.ToString());
        }
Beispiel #7
0
        /// <summary>Output the property settings.</summary>
        /// <returns>A String that represents the configured properties.</returns>
        public override String ToString()
        {
            ToStringFormatter formatter = new ToStringFormatter("SharpCvsLibTestsConfig");

            formatter.AddProperty("Content1", this.Content1);
            formatter.AddProperty("Content2", this.Content2);
            formatter.AddProperty("Cvsroot", this.Cvsroot);
            formatter.AddProperty("InvalidPassword", this.InvalidPassword);
            formatter.AddProperty("LocalPath", this.LocalPath);
            formatter.AddProperty("Module", this.Module);
            formatter.AddProperty("OverrideDirectory", this.OverrideDirectory);
            formatter.AddProperty("Tag1", this.Tag1);
            formatter.AddProperty("Tag2", this.Tag2);
            formatter.AddProperty("TargetDirectory", this.TargetDirectory);
            formatter.AddProperty("TargetFile", this.TargetFile);
            formatter.AddProperty("ValidPassword", this.ValidPassword);

            return(formatter.ToString());
        }