public ScaleParametersPresenter(IScaleParametersView view) : base(view) { _parameterScaleWithFactorDTO = new ParameterScaleWithFactorDTO { Factor = 1 }; View.BindTo(_parameterScaleWithFactorDTO); }
protected override void Context() { _view = A.Fake <IScaleParametersView>(); _parameterSetPresenter = A.Fake <IParameterSetPresenter>(); A.CallTo(() => _view.BindTo(A <ParameterScaleWithFactorDTO> ._)) .Invokes(x => _parameterScaleWithFactorDTO = x.GetArgument <ParameterScaleWithFactorDTO>(0)); sut = new ScaleParametersPresenter(_view); sut.InitializeWith(_parameterSetPresenter); }
public void BindTo(ParameterScaleWithFactorDTO parameterScaleWithFactorDTO) { _screenBinder.BindToSource(parameterScaleWithFactorDTO); }