예제 #1
0
 public Result(string message, ResultSeverityType severity)
 {
     ResultGUID = Guid.NewGuid();
     Severity = severity;
     Message = message;
     this.SubResultList = new List<Result>();
 }
예제 #2
0
 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));
     }
 }
예제 #3
0
 public static Result New(string message, ResultSeverityType severity, params object[] args)
 {
     return new Result(string.Format(message, args), severity);
 }