Exemple #1
0
 public void Apply(SalesOrderCreatedEvent evt)
 {
     Id                     = evt.OrderId;
     _orderValue            = new Money(0, evt.MaxCustomerOrderValue.Currency);
     _maxCustomerOrderValue = evt.MaxCustomerOrderValue;
 }
 public void Store(SalesOrderCreatedEvent evt)
 {
     _db.SalesOrders.Insert(Id: evt.OrderId, OrderValue: evt.MaxCustomerOrderValue.Amount, Currency: (int)evt.MaxCustomerOrderValue.Currency);
 }
 public void Apply(SalesOrderCreatedEvent evt)
 {
     Id = evt.OrderId;
     _orderValue = new Money(0, evt.MaxCustomerOrderValue.Currency);
     _maxCustomerOrderValue = evt.MaxCustomerOrderValue;
 }