public FractionUnboundAlternativeDTO MapFrom(ParameterAlternativeWithSpecies parameterAlternative)
        {
            var fractionUnbound = parameterAlternative.Parameter(CoreConstants.Parameters.FRACTION_UNBOUND_PLASMA_REFERENCE_VALUE);
            var fractionUnboundAlternativeDTO = new FractionUnboundAlternativeDTO(parameterAlternative, fractionUnbound.ValueOrigin);

            fractionUnboundAlternativeDTO.FractionUnboundParameter = _parameterDTOMapper.MapFrom(fractionUnbound, fractionUnboundAlternativeDTO, dto => dto.FractionUnbound, dto => dto.FractionUnboundParameter);
            return(fractionUnboundAlternativeDTO);
        }
Exemple #2
0
        public FractionUnboundAlternativeDTO MapFrom(ParameterAlternativeWithSpecies parameterAlternative)
        {
            var fractionUnboundAlternativeDTO = new FractionUnboundAlternativeDTO(parameterAlternative);

            var lipophilicity = parameterAlternative.Parameter(CoreConstants.Parameter.FractionUnbound);

            fractionUnboundAlternativeDTO.FractionUnboundParameter = _parameterDTOMapper.MapFrom(lipophilicity, fractionUnboundAlternativeDTO, dto => dto.FractionUnbound, dto => dto.FractionUnboundParameter);

            return(fractionUnboundAlternativeDTO);
        }
 public void SetSpeciesValue(FractionUnboundAlternativeDTO fractionUnboundAlternativeDTO, Species species)
 {
     AddCommand(_compoundAlternativeTask.SetSpeciesForAlternative(fractionUnboundAlternativeDTO.ParameterAlternative, species));
 }
 public void SetFractionUnboundValue(FractionUnboundAlternativeDTO fractionUnboundAlternativeDTO, double newValue)
 {
     AddCommand(_compoundAlternativeTask.SetAlternativeParameterValue(fractionUnboundAlternativeDTO.FractionUnboundParameter.Parameter, newValue));
 }