public void should_be_able_to_find_a_matching_kinetic_in_the_simulation_processes_with_the_accurate_kinetic() { var error = new List <string>(); foreach (var transportProcess in sut.All().Select(x => x.ProcessName).Distinct()) { foreach (var flatTransportProcess in _flatProcessRepository.All().Where(p => p.IsActiveTransport())) { var simProcess = _simulationProcessRepository.TransportFor(transportProcess, flatTransportProcess.Name); //This combination is not supported yet and is explicitly excluded if (transportProcess.Contains("BiDirectional") && flatTransportProcess.Name.Contains("_Hill")) { continue; } if (simProcess == null) { error.Add($"Could not find sim process for individual process '{transportProcess}' and compound process '{flatTransportProcess.Name}'"); } } } error.Count().ShouldBeEqualTo(0, error.ToString("\n")); }
protected override void DoStart() { foreach (var flatProc in _flatProcessesRepo.All().Where(processIsApplication)) { _applicationTransports.Add(_passiveTransportMapper.MapFrom(flatProc)); } }
private void fillReactions() { foreach (var flatProc in _flatProcessesRepository.All().Where(processIsNonTemplateReaction)) { _allReactions.Add(_activeProcessMapper.MapFrom(flatProc).DowncastTo <PKSimReaction>()); } _allReactions.Each(process => _parameterContainerTask.AddProcessBuilderParametersTo(process)); }
protected override void DoStart() { var query = _flatProcessesRepository.All().Where(processIsSimulationActiveProcess) .MapAllUsing(_activeProcessMapper) .Where(activeProcess => activeProcess != null); _allSimulationActiveProcesses.AddRange(query); _allSimulationActiveProcesses.Each(process => _parameterContainerTask.AddProcessBuilderParametersTo(process)); }
public void should_be_able_to_find_a_matching_kinetic_in_the_simulation_processes_with_the_accurate_kinetic() { var error = new List <string>(); foreach (var transportProcess in sut.All().Select(x => x.ProcessName).Distinct()) { foreach (var flatTransportProcess in _flatProcessRepository.All().Where(p => p.IsActiveTransport())) { var simProcess = _simulationProcessRepository.TransportFor(transportProcess, flatTransportProcess.Name); if (simProcess == null) { error.Add(string.Format("Could not find sim process for individual process '{0}' and compound process '{1}'", transportProcess, flatTransportProcess.Name)); } } } error.Count().ShouldBeEqualTo(0, error.ToString("\n")); }