public PayAsYouGoAccountSnapshot GetPayAsYouGoAccountSnapShot() { var snapshot = new PayAsYouGoAccountSnapshot(); // Save all state snapshot.Version = Version; return snapshot; }
public PayAsYouGoAccountSnapshot GetPayAsYouGoAccountSnapShot() { var snapshot = new PayAsYouGoAccountSnapshot(); // Save all state snapshot.Version = Version; return(snapshot); }
public void SaveSnapshot(PayAsYouGoAccountSnapshot snapshot, PayAsYouGoAccount payAsYouGoAccount) { var streamName = StreamNameFor(payAsYouGoAccount.Id); _eventStore.AddSnapshot<PayAsYouGoAccountSnapshot>(streamName, snapshot); }
public PayAsYouGoAccount(PayAsYouGoAccountSnapshot snapshot) { Version = snapshot.Version; InitialVersion = snapshot.Version; _credit = new Money(snapshot.Credit); }
public PayAsYouGoAccount(PayAsYouGoAccountSnapshot snapShot) { // Restore all state Version = snapShot.Version; }