public static TestResultModel CloneExisting(TestResult template)
        {
            TestResultModel model = new TestResultModel();

            model.Id       = template.Id;
            model.groupId  = template.groupId;
            model.planId   = template.planId;
            model.date     = template.date;
            model.items    = template.items ?? new TestResultItem[0];
            model.hasError = model.items.Length > 0;
            model.intialise();
            return(model);
        }
 private object convert(object data)
 {
     return(TestResultModel.CloneExisting((TestResult)data));
 }