示例#1
0
        public ParameterStartValueDTO MapFrom(IParameterStartValue parameterStartValue, IStartValuesBuildingBlock <IParameterStartValue> buildingBlock)
        {
            var dto = new ParameterStartValueDTO(parameterStartValue, buildingBlock)
            {
                ContainerPath = parameterStartValue.ContainerPath,
            };

            var formula = parameterStartValue.Formula as ExplicitFormula;

            dto.Formula = formula != null ? new StartValueFormulaDTO(formula) : new EmptyFormulaDTO();
            return(dto);
        }
示例#2
0
 public static IFormatter <double?> ParameterStartValueFormatter(this ParameterStartValueDTO parameterStartValueDTO)
 {
     return(new StartValueFormatter(parameterStartValueDTO));
 }
示例#3
0
 private Color displayColorFor(ParameterStartValueDTO startValueDTO)
 {
     return(DisplayColorFor(startValueDTO.ParameterStartValue));
 }
示例#4
0
 protected override void Because()
 {
     _resultDTO = sut.MapFrom(_parameterStartValue, A.Fake <IParameterStartValuesBuildingBlock>());
 }
示例#5
0
 private bool isTemplate(ParameterStartValueDTO startValueDTO)
 {
     return(IsTemplate(startValueDTO.ParameterStartValue));
 }