public Result(string message, ResultSeverityType severity) { ResultGUID = Guid.NewGuid(); Severity = severity; Message = message; this.SubResultList = new List<Result>(); }
public void AddResult(string message, ResultSeverityType severity) { if (ResultGUID == null) { ResultGUID = Guid.NewGuid(); Severity = severity; Message = message; } else { if (SubResultList == null) SubResultList = new List<Result>(); SubResultList.Add(new Result(message, severity)); } }
public static Result New(string message, ResultSeverityType severity, params object[] args) { return new Result(string.Format(message, args), severity); }