Пример #1
0
        public CreateItemCommand(ItemId aggregateId, string description)
        {
            CommandId = Guid.NewGuid();

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