Beispiel #1
0
        private void SaveProcessingType(object ProcessingTypeInstance)
        {
            ProcessingTypeViewModel ProcessingType = ProcessingTypeInstance as ProcessingTypeViewModel;

            if (ProcessingType != null && ProcessingType.IsValid)
            {
                ProcessingTypes.Add(ProcessingType);
            }
            Back();
        }
        private void RefreshProcessingTypes()
        {
            ProcessingTypes.Clear();

            switch (TestType)
            {
            case TestType.MSTest:
                ProcessingTypes.Add(ProcessingType.MSTestExecution);
                ProcessingTypes.Add(ProcessingType.MSTestExecutionCreateCorrespondenceModel);
                ProcessingTypes.Add(ProcessingType.ListReporting);
                ProcessingTypes.Add(ProcessingType.CsvReporting);
                ProcessingTypes.Add(ProcessingType.CollectStatistics);
                break;

            case TestType.CsvList:
                ProcessingTypes.Add(ProcessingType.ListReporting);
                ProcessingTypes.Add(ProcessingType.CsvReporting);
                ProcessingTypes.Add(ProcessingType.CollectStatistics);
                break;
            }

            ProcessingType = ProcessingTypes.FirstOrDefault();
        }