public CreateItemCommand(ItemId aggregateId, string description)
        {
            CommandId = Guid.NewGuid();

            Description = description;
            AggregateId = aggregateId;
        }
Example #2
0
 public ItemCreated(ItemId id, string description)
 {
     Id = id;
     Description = description;
 }
Example #3
0
 public ItemLoaded(ItemId id, decimal qty)
 {
     Id = id;
     Qty = qty;
 }
Example #4
0
 private void Apply(ItemCreated evt)
 {
     this.Id = evt.Id.Id;
     _id = evt.Id;
 }
Example #5
0
 public Item(ItemId id, string description)
 {
     RaiseEvent(new ItemCreated(id, description));
 }