public void Execute()
        {
            IDataProvider realDataProvider = new ProteoWizardDataProvider(mockEventAggregator.Object);
            realDataProvider.Open(Properties.Settings.Default.mzXMLTestFile1, 0);
            IXYData xyData = realDataProvider.GetTotalIonChromatogram(TimeUnit.Seconds);
            outputEvent.Subscribe(OnPublish);

            IList<ChromatographicPeak> peaks = chromatographicPeakDetection.Execute(xyData);

            Assert.AreEqual(1, peaks.Count);
            Assert.AreEqual(7.58158, Math.Round(peaks[0].Rt, 5));
            Assert.AreEqual(69884, peaks[0].PeakHeight);
            Assert.AreEqual(3, messageCount);
            Assert.AreEqual(true, publishCalled);
        }
 private IXYData LoadChromatogram()
 {
     IDataProvider realDataProvider = new ProteoWizardDataProvider(mockEventAggregator.Object);
     realDataProvider.Open(Properties.Settings.Default.mzXMLTestFile1, 0);
     IXYData xyData = realDataProvider.GetTotalIonChromatogram(TimeUnit.Seconds);
     SetupOutputEvents();
     return xyData;
 }