protected override void Context() { base.Context(); _tableFormula = new TableFormula(); _tableFormula.AddPoint(0, 0); _valuePoint = new ValuePoint(1, 1); _tableFormula.AddPoint(_valuePoint); sut.Edit(_tableFormula); _removedPointDTO = new DTOValuePoint(A.Fake <TableFormulaBuilderDTO>()) { ValuePoint = _valuePoint }; }
protected override void Context() { base.Context(); _valuePointDTO = new DTOValuePoint(A.Fake <TableFormulaBuilderDTO>()); var valuePoint = new ValuePoint(0, 0) { RestartSolver = false }; _valuePointDTO.ValuePoint = valuePoint; _valuePointDTO.RestartSolver = false; _tableFormula = new TableFormula(); sut.Edit(_tableFormula); }
public DTOValuePoint MapFrom(ValuePoint input) { var dto = new DTOValuePoint(_tableFormulaDTO) { X = new ValuePointParameterDTO { Value = input.X, Dimension = _xDimension, DisplayUnit = _xDisplayUnit }, Y = new ValuePointParameterDTO { Value = input.Y, Dimension = _yDimension, DisplayUnit = _yDisplayUnit }, RestartSolver = input.RestartSolver, ValuePoint = input }; return(dto); }
public static IFormatter <double> ValuePointYFormatter(this DTOValuePoint dtoValuePoint) { return(new ValuePointFormatter(dtoValuePoint.Y)); }
private void setRestartSolver(DTOValuePoint valuePoint, bool newRestartSolverValue) { _presenter.SetRestartSolver(valuePoint, newRestartSolverValue); }
private void onXValueSet(DTOValuePoint valuePoint, double newXDisplayValue) { _presenter.SetXValue(valuePoint, newXDisplayValue); }
public void SetRestartSolver(DTOValuePoint valuePoint, bool newRestartSolverValue) { this.DoWithinLatch(() => AddCommand(_tableFormulaTask.SetRestartSolver(_formula, valuePoint.ValuePoint, newRestartSolverValue, BuildingBlock).Run(_context)) ); }
public void RemoveValuePoint(DTOValuePoint dtoValuePoint) { var valuePoint = dtoValuePoint.ValuePoint; AddCommand(_moBiFormulaTask.RemoveValuePointFromTableFormula(_formula, valuePoint, BuildingBlock)); }
public void SetYValue(DTOValuePoint dtoValuePoint, double newValue) { this.DoWithinLatch(() => AddCommand(_tableFormulaTask.SetYValuePoint(_formula, dtoValuePoint.ValuePoint, newValue, BuildingBlock).Run(_context)) ); }