public IEnumerable<Item> Reprocess()
{
var items = this.streamStorage.GetLatest(type: null, fromDate: null, toDate: null, limit: null).ToList();
Parallel.ForEach(items, item => this.streamProcessor.Process(item));
this.streamStorage.Save(items);
return items;
}
public void Can_Reprocess_Existing_Items_In_Database() { try { var streamPersister = new StreamReprocessor(ConnectionString, DatabaseName); streamPersister.Reprocess(); } finally { MongoServer.Create(ConnectionString).DropDatabase(DatabaseName); } }