private void ProcessSvmrData(TestRawData svmrData, out SvmrResults svmrOutData) { var svmrProcessor = new SvmrDataProcessor(); IMethodProcessedData tempSvmrOutData = svmrProcessor.ProcessData(svmrData); svmrOutData = tempSvmrOutData as SvmrResults; if (null == svmrOutData) { throw new ArgumentException( $"SVMR procesor returned object of an unexpected type. Data type: " + $"{tempSvmrOutData.GetType()}, expected: {typeof(SvmrResults)}"); } }
public SvmrDataProcessor() : base() { // Подставим наследника, чтобы базовый класс ничего не заметил, // что все хорошо и заполнил его данными (TestInfo). ProcessorOutputData = new SvmrResults(); SvmrResults.SvmrErrors = new TestErrors(); // Наши настройки по умолчанию. m_Settings = new ProcessingSettings(); var mapperConfig = new MapperConfiguration(cfg => { cfg.AddProfile <AutoMapperStatisticsProfile>(); }); _mapper = mapperConfig.CreateMapper(); } // DataProcessor