コード例 #1
0
        public static IndividualMolecule DefaultIndividualMolecule()
        {
            var molecule = new IndividualEnzyme();

            molecule.Add(ConstantParameterWithValue(10).WithName(CoreConstants.Parameter.REFERENCE_CONCENTRATION));
            molecule.Add(ConstantParameterWithValue(20).WithName(CoreConstants.Parameter.HALF_LIFE_LIVER));
            molecule.Add(ConstantParameterWithValue(30).WithName(CoreConstants.Parameter.HALF_LIFE_INTESTINE));
            return(molecule);
        }
コード例 #2
0
 protected override void Context()
 {
     _moleculeParameterRepository = A.Fake <IMoleculeParameterRepository>();
     sut       = new MoleculeParameterTask(_moleculeParameterRepository);
     _molecule = new IndividualEnzyme {
         Name = "CYP3A4"
     };
     _molecule.Add(DomainHelperForSpecs.ConstantParameterWithValue(10).WithName(CoreConstants.Parameters.REFERENCE_CONCENTRATION));
     _molecule.Add(DomainHelperForSpecs.ConstantParameterWithValue(20).WithName(CoreConstants.Parameters.HALF_LIFE_LIVER));
     _molecule.Add(DomainHelperForSpecs.ConstantParameterWithValue(30).WithName(CoreConstants.Parameters.HALF_LIFE_INTESTINE));
 }