public string Print(Reporter reporter) { reporter.Indent(); var result = PrintContent(reporter); reporter.Outdent(); return result; }
public string Print(Reporter reporter) { reporter.Indent(); var report = new StringBuilder(); report.AppendLine(String.Format("{0}parkinglot: {1}", reporter.FormatString(), AvailablePosition())); reporter.Outdent(); return report.ToString(); }
private string PrintContent(Reporter reporter) { var report = new StringBuilder(); report.AppendLine(String.Format("{0}parkingboy:", reporter.FormatString())); foreach (var parkinglot in parkinglots) { report.Append(parkinglot.Print(reporter)); } return report.ToString(); }