public void Save(PayAsYouGoAccount payAsYouGoAccount) { var streamName = string.Format("{0}-{1}", typeof(PayAsYouGoAccount).Name, payAsYouGoAccount.Id.ToString()); _eventStore.AppendEventsToStream(streamName, payAsYouGoAccount.Changes); }
private void PersistAllUncommittedEvents(PayAsYouGoAccountRepository repo) { repo.Save(account1); repo.Save(account2); repo.Save(account3); repo.Save(account4); repo.Save(account5); }