Ejemplo n.º 1
0
        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)}");
            }
        }
Ejemplo n.º 2
0
        private void ProcessHrvData(TestRawData hrvData, out HrvResults hrvOutData)
        {
            var hrvProcessor = new HrvDataProcessor_Pro();

            IMethodProcessedData tempHrvOutData = hrvProcessor.ProcessData(hrvData);

            hrvOutData = tempHrvOutData as HrvResults;
            if (null == hrvOutData)
            {
                throw new ArgumentException(
                          $"HRV processor returned object of an unexpected type. Data type: " +
                          $"{tempHrvOutData.GetType()}, expected: {typeof(HrvResults)}");
            }
        }