public void Presenters_WhenThereIsAnInboxAction_ContainsInboxActionPresenter() { IAction inboxAction = AnAction.In(State.Inbox).Build(); var stubActionPresenter = new Mock<IActionPresenter>(); var test = new SingleInboxActionSelector(AnInboxActionsFilter.Providing(inboxAction).Build(), action => stubActionPresenter.Object, new AlwaysSelectedPolicy()); test.Initialize(); Assert.Contains(stubActionPresenter.Object, test.Screens); }
public void Presenters_WhenThereIsAnInboxAction_ContainsInboxActionPresenter() { IAction inboxAction = AnAction.In(State.Inbox).Build(); var stubActionPresenter = new Mock <IActionPresenter>(); var test = new SingleInboxActionSelector(AnInboxActionsFilter.Providing(inboxAction).Build(), action => stubActionPresenter.Object, new AlwaysSelectedPolicy()); test.Initialize(); Assert.Contains(stubActionPresenter.Object, test.Screens); }