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); }
protected override void Context() { base.Context(); _compound = new Compound(); _compoundSpecificCalculationMethod = new CalculationMethod { Category = "C1", Name = "Compound Specific" }; _compound.AddCalculationMethod(_compoundSpecificCalculationMethod); }
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); }
private void addDefaultCalculationMethodsTo(Compound compound) { _compoundCalculationMethodCategoryRepository.All().Each(c => compound.AddCalculationMethod(c.DefaultItem)); }