public void Visit(IPassiveTransportBuildingBlock passiveTransportBuildingBlock) { var transpotBuilder = passiveTransportBuildingBlock.FirstOrDefault(isOldGallbladderEmptyingTransport); if (transpotBuilder != null) { var kinetic = ((ExplicitFormula)transpotBuilder.Formula); updateEHCKinetic(kinetic, ObjectPathKeywords.MOLECULE); } updateAllParameters(passiveTransportBuildingBlock.SelectMany(c => c.GetAllChildren <IParameter>())); _converted = true; }
public void should_change_all_non_local_passive_transports_parameters_to_local() { _passiveTransportBuildingBlock.SelectMany( pbt => pbt.GetAllChildren <IParameter>(p => !p.BuildMode.Equals(ParameterBuildMode.Local))).ShouldBeEmpty(); }