예제 #1
0
 public ShoppingCartState Apply(ShoppingCartCreated @event)
 {
     return(new ShoppingCartState(this)
     {
         StreamName = @event.Id,
         CustomerId = @event.CustomerId,
         CreatedAm = @event.DateTime,
         Active = true,
         ShoppingCartStatus = ShoppingCartStatus.Open
     });
 }