Пример #1
0
        public void TestInitialize()
        {
            IEventAggregator eventAggregator = new EventAggregator();
            peptide = new Hydra.Core.Domain.Peptide() { Sequence = "SAMPLE", MonoIsotopicMass = 200 };
            PeptideViewModel peptideViewModel = new PeptideViewModel(peptide, eventAggregator);
            ionsB = new List<B_Ion>();
            ionsB.Add(peptideViewModel.BIonSinglyCharged[0].Ion as B_Ion);
            ionsB.Add(peptideViewModel.BIonSinglyCharged[1].Ion as B_Ion);
            ionsY = new List<Y_Ion>();
            ionsY.Add(peptideViewModel.YIonSinglyCharged[0].Ion as Y_Ion);
            ionsY.Add(peptideViewModel.YIonSinglyCharged[1].Ion as Y_Ion);
            ionsY.Add(peptideViewModel.YIonSinglyCharged[2].Ion as Y_Ion);

            IList<Hydra.Core.Domain.FragmentIon> fragmentLists = new List<Hydra.Core.Domain.FragmentIon>();
            fragmentLists.Add(new Hydra.Core.Domain.FragmentIon() { MZ = 100, FragmentIonType = Hydra.Core.FragmentIonType.BFragment });
            fragmentLists.Add(new Hydra.Core.Domain.FragmentIon() { MZ = 88.039853443828, FragmentIonType = Hydra.Core.FragmentIonType.BFragment });
            fragmentLists.Add(new Hydra.Core.Domain.FragmentIon() { MZ = 148.06098281631802, FragmentIonType = Hydra.Core.FragmentIonType.BFragment });
            fragmentIons = new System.Collections.ObjectModel.ObservableCollection<Hydra.Core.Domain.FragmentIon>(fragmentLists);

            viewModel = new IonViewModel();
        }
Пример #2
0
 public void TestInitialize()
 {
     eventAggregator = new EventAggregator();
     viewModel = new PeptideViewModel(new Peptide() { Sequence = "SAMPLE" }, eventAggregator);
 }
Пример #3
0
 public PeptideView(PeptideViewModel viewModel)
 {
     DataContext = viewModel;
     InitializeComponent();
 }