protected override void Context()
        {
            _commits = new[]
            {
                _firstCommit = CommitHelper.Create(),
                _lastCommit  = CommitHelper.Create()
            };

            A.CallTo(() => _persistence.GetUndispatchedCommits()).Returns(_commits);
        }
Beispiel #2
0
        protected override void Context()
        {
            _commits = new[]
            {
                CommitHelper.Create(),
                    CommitHelper.Create()
            };

            _persistence.Setup(x => x.Initialize());
            _persistence.Setup(x => x.GetUndispatchedCommits()).Returns(_commits);
            _dispatcher.Setup(x => x.Dispatch(_commits.First()));
            _dispatcher.Setup(x => x.Dispatch(_commits.Last()));
        }