private void PersistAllUncommittedEvents(PayAsYouGoAccountRepository repo) { repo.Save(account1); repo.Save(account2); repo.Save(account3); repo.Save(account4); repo.Save(account5); }
public void Import_test_data_for_temporal_queries_and_projections_example_in_the_book() { using (var con = EventStoreConnection.Create(endpoint)) { con.Connect(); var es = new GetEventStore(con); var repo = new PayAsYouGoAccountRepository(es); Create5EmptyAccounts(); SimulateCustomerActivityFor3rdJune(); SimulateCustomerActivityFor4thJune(); SimulateCustomerActivityFor5thJune(); PersistAllUncommittedEvents(repo); } }