protected override void Context()
        {
            base.Context();
            var ontogeny1 = new DatabaseOntogeny {
                SpeciesName = "Dog", Name = "CYP3A1"
            };
            var ontogeny2 = new DatabaseOntogeny {
                SpeciesName = "Dog", Name = "CYP3A2"
            };
            var ontogeny3 = new DatabaseOntogeny {
                SpeciesName = "Dog", Name = "CYP3A3"
            };

            _originData = new Core.Model.OriginData {
                Species = new Species {
                    Name = "Dog"
                }
            };
            A.CallTo(() => _ontogenyRepository.AllFor(_originData.Species.Name)).Returns(new[] { ontogeny1, ontogeny2, ontogeny3 });
            A.CallTo(() => _ontogenyRepository.OntogenyFactorFor(ontogeny1, CoreConstants.Groups.ONTOGENY_LIVER, _originData, null)).Returns(0.1);
            A.CallTo(() => _ontogenyRepository.OntogenyFactorFor(ontogeny2, CoreConstants.Groups.ONTOGENY_DUODENUM, _originData, null)).Returns(0.22);
            A.CallTo(() => _ontogenyRepository.OntogenyFactorFor(ontogeny2, CoreConstants.Groups.ONTOGENY_LIVER, _originData, null)).Returns(0.21);
            A.CallTo(() => _ontogenyRepository.OntogenyFactorFor(ontogeny3, CoreConstants.Groups.ONTOGENY_LIVER, _originData, null)).Returns(0.31);

            _moleculeNames.Add(new MoleculeOntogeny("CYP1", "CYP3A1"));
            _moleculeNames.Add(new MoleculeOntogeny("CYP2", "CYP3A2"));
            _moleculeNames.Add(new MoleculeOntogeny("CYP3", "CYP3A3"));
            _moleculeNames.Add(new MoleculeOntogeny("CYP4", "ENZYME_NOT_FOUND"));
        }
 protected override void Context()
 {
     base.Context();
     _originData = new Core.Model.OriginData {
         Species = new Species {
             Name = "Dog"
         }
     };
     A.CallTo(() => _ontogenyRepository.AllFor(_originData.Species.Name)).Returns(new List <Ontogeny>());
     _moleculeNames.Add(new MoleculeOntogeny("CYP", "CYP3A4"));
 }
 protected override void Context()
 {
     base.Context();
     _ontogeny = new DatabaseOntogeny {
         SpeciesName = "Dog", Name = "CYP3A4"
     };
     _originData = new Core.Model.OriginData {
         Species = new Species {
             Name = "Dog"
         }
     };
     A.CallTo(() => _ontogenyRepository.AllFor(_originData.Species.Name)).Returns(new[] { _ontogeny });
     A.CallTo(() => _ontogenyRepository.OntogenyFactorFor(_ontogeny, CoreConstants.Groups.ONTOGENY_LIVER, _originData, null)).Returns(0.5);
     _moleculeNames.Add(new MoleculeOntogeny("CYP", "CYP3A4"));
 }