protected IndividualSimulation CreateSimulationWithCalculatedSpecificPintFor(CalculationMethod intestinalPermeabilityMethod)
        {
            var modelProperties = DomainFactoryForSpecs.CreateDefaultModelPropertiesFor(_individual);

            _compound.RemoveCalculationMethodFor(CoreConstants.Category.IntestinalPermeability);
            _compound.AddCalculationMethod(intestinalPermeabilityMethod);

            var simulation = DomainFactoryForSpecs.CreateModelLessSimulationWith(_individual, _compound, _protocol, modelProperties).DowncastTo <IndividualSimulation>();

            DomainFactoryForSpecs.AddModelToSimulation(simulation);
            return(simulation);
        }
示例#2
0
 protected override void Context()
 {
     base.Context();
     _compound = new Compound();
     _compoundSpecificCalculationMethod = new CalculationMethod {
         Category = "C1", Name = "Compound Specific"
     };
     _compound.AddCalculationMethod(_compoundSpecificCalculationMethod);
 }
示例#3
0
        protected override void Context()
        {
            base.Context();
            _compound             = new Compound();
            _cateogry             = "A Category";
            _newCalculationMethod = new CalculationMethod {
                Category = _cateogry
            };
            _oldCalculationMethod = new CalculationMethod {
                Category = _cateogry
            };

            _compound.AddCalculationMethod(_oldCalculationMethod);
        }
示例#4
0
 private void addDefaultCalculationMethodsTo(Compound compound)
 {
     _compoundCalculationMethodCategoryRepository.All().Each(c => compound.AddCalculationMethod(c.DefaultItem));
 }