コード例 #1
0
        public void Input__ReturnsInputPresenter()
        {
            var stubInput = new Mock<IInputPresenter>();
            var test = new CollectPresenter(stubInput.Object, new Mock<ISingleInboxActionSelector>().Object);

            Assert.Same(stubInput.Object, test.Input);
        }
コード例 #2
0
        public void InboxActions__ReturnsInputActions()
        {
            var stubInboxActions = new Mock <ISingleInboxActionSelector>();
            var test             = new CollectPresenter(new Mock <IInputPresenter>().Object, stubInboxActions.Object);

            Assert.Same(stubInboxActions.Object, test.InboxActions);
        }
コード例 #3
0
        public void Initialize__InitializesInboxActions()
        {
            var mockInboxActions = new Mock <ISingleInboxActionSelector>();
            var test             = new CollectPresenter(new Mock <IInputPresenter>().Object, mockInboxActions.Object);

            test.Initialize();

            mockInboxActions.Verify(x => x.Initialize());
        }
コード例 #4
0
        public void Initialize__InitializesInput()
        {
            var mockInput = new Mock<IInputPresenter>();
            var test = new CollectPresenter(mockInput.Object, new Mock<ISingleInboxActionSelector>().Object);

            test.Initialize();

            mockInput.Verify(x => x.Initialize());
        }