Ejemplo n.º 1
0
        protected override void Context()
        {
            base.Context();
            A.CallTo(() => _journalSessionConnector.IsConnected).Returns(true);
            _objectBase  = A.Fake <IObjectBase>();
            _relatedItem = new RelatedItem();
            A.CallTo(() => _relatedItemFactory.Create(_objectBase)).Returns(_relatedItem);
            A.CallTo(() => _journalPageFactory.Create()).Returns(_journalPage);
            _journal.Edited = null;

            A.CallTo(() => _databaseMediator.ExecuteCommand(A <CreateJournalPage> ._))
            .Invokes(x => _payload = x.GetArgument <CreateJournalPage>(0));
        }
Ejemplo n.º 2
0
 protected override void Context()
 {
     base.Context();
     A.CallTo(() => _databaseMediator.ExecuteCommand(A <CreateJournalPage> ._))
     .Invokes(x => _payload = x.GetArgument <CreateJournalPage>(0));
 }