public override void SetUp() { base.SetUp(); _view = Mocker.DynamicMock <IStatusView>(); _list = Mocker.DynamicMock <IRuleViolationList>(); }
public StatusPresenter(IStatusView view, IScreenConductor shell, GrammarErrorsSubject errors, IExecutionQueue queue) { _view = view; _conductor = shell; _errors = errors; _queue = queue; }
public StatusPresenter(IStatusView view, IReportsService service, IReportManager reportManager) { ArgumentChecker.ThrowIfNull(view, "view"); ArgumentChecker.ThrowIfNull(service, "service"); ArgumentChecker.ThrowIfNull(reportManager, "reportManager"); this.reportManager = reportManager; this.view = view; this.service = service; }
/// <summary> /// Create a new instance of this class /// </summary> /// <param name="view">The view to use</param> /// <param name="list">The violation list</param> public StatusController(IStatusView view, IRuleViolationList list) { _view = view; _list = list; _list.ViolationAdded += new EventHandler <RuleViolationEventArgs>(_list_ViolationAdded); _list.ViolationRemoved += new EventHandler <RuleViolationEventArgs>(_list_ViolationRemoved); _view.DisplayViolationCount(_list.Count); }
public void StatusControllerShouldDisplayViolationListViolationCount() { IStatusView view = Mocker.DynamicMock <IStatusView>(); IRuleViolationList list = Mocker.DynamicMock <IRuleViolationList>(); Expect.Call(list.Count).Return(0).Repeat.Once(); Mocker.ReplayAll(); StatusController controller = new StatusController(view, list); Mocker.VerifyAll(); }
public StatusController(IStatusView i_View) { r_StatusView = i_View; initStateToColor(); }
public StatusPresenter(IStatusView statusView) { this.statusView = statusView; }