public async Task Aggregates_can_schedule_commands_against_themselves_idempotently() { var it = new MarcoPoloPlayerWhoIsIt(); await itRepo.Save(it); await it.ApplyAsync(new MarcoPoloPlayerWhoIsIt.KeepSayingMarcoOverAndOver()); VirtualClock.Current.AdvanceBy(TimeSpan.FromMinutes(1)); await itRepo.Refresh(it); it.Events() .OfType <MarcoPoloPlayerWhoIsIt.SaidMarco>() .Count() .Should() .BeGreaterOrEqualTo(5); }
public Task Refresh(TAggregate aggregate) { return(innerRepository.Refresh(aggregate)); }