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 InitializeWith(IParameterSetPresenter parameterSetPresenter) { _parameterSetPresenter = parameterSetPresenter; }