public void GoProcess__ActivatesProcessPresenter() { var mockPresenter = new Mock <IProcessPresenter>(); var test = new WorkspacePresenter(AnInboxActionsFilter.Build(), null, mockPresenter.Object); test.Activate(); test.GoProcess(); mockPresenter.Verify(x => x.Activate()); }
public void GoCollect__ActivatesCollectPresenter() { var mockPresenter = new Mock <ICollectPresenter>(); var test = new WorkspacePresenter(AnInboxActionsFilter.Build(), mockPresenter.Object, null); test.Activate(); test.GoCollect(); mockPresenter.Verify(x => x.Activate()); }
public void ProcessButtonText_WhenThereAreNoInboxActions_IsProcess() { var test = new WorkspacePresenter(AnInboxActionsFilter.Build(), null, null); Assert.Equal("Process", test.ProcessButtonText); }
public void IsProcessingEnabled_WhenThereAreNoInboxActions_IsFalse() { var test = new WorkspacePresenter(AnInboxActionsFilter.Build(), null, null); Assert.False(test.IsProcessingEnabled); }