protected override void Context() { _commits = new[] { _firstCommit = CommitHelper.Create(), _lastCommit = CommitHelper.Create() }; A.CallTo(() => _persistence.GetUndispatchedCommits()).Returns(_commits); }
protected virtual void Start() { Logger.Debug(Resources.InitializingPersistence); _persistence.Initialize(); Logger.Debug(Resources.GettingUndispatchedCommits); foreach (var commit in _persistence.GetUndispatchedCommits()) { ScheduleDispatch(commit); } }
public IEnumerable <ICommit> GetUndispatchedCommits() { return(ExecuteHooks(_original.GetUndispatchedCommits())); }
public virtual IEnumerable <Commit> GetUndispatchedCommits() { return(_persistence.GetUndispatchedCommits()); }
public IEnumerable <Commit> GetUndispatchedCommits() { return(original.GetUndispatchedCommits()); }
public IEnumerable <ICommit> GetUndispatchedCommits() { return(underlying.GetUndispatchedCommits()); }
public void should_purge_all_undispatched_commits() { persistence1.GetUndispatchedCommits().Count().ShouldBe(0); }