public string Audit(Story obj) { var stringWriter = new StringWriter(); var xmlWriter = new XmlTextWriter(stringWriter); xmlWriter.WriteStartDocument(); xmlWriter.WriteStartElement("Changes"); xmlWriter = AuditorHelper.Audit(xmlWriter, "AssignedToName", this.Object.AssignedToName, obj.AssignedToName); xmlWriter = AuditorHelper.Audit(xmlWriter, "AssignedDate", this.Object.AssignedDate, obj.AssignedDate); xmlWriter = AuditorHelper.Audit(xmlWriter, "CompletedDate", this.Object.CompletedDate, obj.CompletedDate); xmlWriter = AuditorHelper.Audit(xmlWriter, "Description", this.Object.Description, obj.Description); xmlWriter = AuditorHelper.Audit(xmlWriter, "Duration", this.Object.Duration, obj.Duration); xmlWriter = AuditorHelper.Audit(xmlWriter, "EstimatedCompletedDate", this.Object.EstimatedCompletedDate, obj.EstimatedCompletedDate); xmlWriter = AuditorHelper.Audit(xmlWriter, "EstimatedDuration", this.Object.EstimatedDuration, obj.EstimatedDuration); xmlWriter = AuditorHelper.Audit(xmlWriter, "IsArchived", this.Object.IsArchived, obj.IsArchived); xmlWriter = AuditorHelper.Audit(xmlWriter, "IsCompleted", this.Object.IsCompleted, obj.IsCompleted); xmlWriter = AuditorHelper.Audit(xmlWriter, "SprintName", this.Object.SprintName, obj.SprintName); xmlWriter = AuditorHelper.Audit(xmlWriter, "StartDate", this.Object.StartDate, obj.StartDate); xmlWriter = AuditorHelper.Audit(xmlWriter, "StatusName", this.Object.StatusName, obj.StatusName); xmlWriter.WriteEndElement(); xmlWriter.WriteEndDocument(); return(stringWriter.ToString()); }
public string Audit(Hour obj) { var stringWriter = new StringWriter(); var xmlWriter = new XmlTextWriter(stringWriter); xmlWriter.WriteStartDocument(); xmlWriter.WriteStartElement("Changes"); xmlWriter = AuditorHelper.Audit(xmlWriter, "Date", this.Object.Date, obj.Date); xmlWriter = AuditorHelper.Audit(xmlWriter, "Duration", this.Object.Duration, obj.Duration); xmlWriter = AuditorHelper.Audit(xmlWriter, "IsArchived", this.Object.IsArchived, obj.IsArchived); xmlWriter = AuditorHelper.Audit(xmlWriter, "Notes", this.Object.Notes, obj.Notes); xmlWriter.WriteEndElement(); xmlWriter.WriteEndDocument(); return(stringWriter.ToString()); }
public string Audit(Project obj) { var stringWriter = new StringWriter(); var xmlWriter = new XmlTextWriter(stringWriter); xmlWriter.WriteStartDocument(); xmlWriter.WriteStartElement("Changes"); xmlWriter = AuditorHelper.Audit(xmlWriter, "Description", this.Object.Description, obj.Description); xmlWriter = AuditorHelper.Audit(xmlWriter, "IsActive", this.Object.IsActive, obj.IsActive); xmlWriter = AuditorHelper.Audit(xmlWriter, "IsArchived", this.Object.IsArchived, obj.IsArchived); xmlWriter = AuditorHelper.Audit(xmlWriter, "Name", this.Object.Name, obj.Name); xmlWriter.WriteEndElement(); xmlWriter.WriteEndDocument(); return(stringWriter.ToString()); }