Пример #1
0
        private Tree <IPresenterItem> SelectableItemFromTestCaseItem(TestCaseItem testCaseItem)
        {
            if (testCaseItem == null)
            {
                return(null);
            }
            var tree = new Tree <IPresenterItem>();

            tree.Value = new PresenterSelectableItem(testCaseItem, View);
            return(tree);
        }
Пример #2
0
 private ScreenshotFileInfoDto GenerateFileInfo(TestCaseItem item)
 {
     if (item is Setup)
     {
         return(GenerateFileInfo(item as Setup));
     }
     if (item is Data)
     {
         return(GenerateFileInfo(item as Data));
     }
     if (item is StepResult)
     {
         return(GenerateFileInfo(item as StepResult));
     }
     throw new InvalidOperationException();
 }