Exemplo n.º 1
0
        public void Handle(CreateInventoryItem command)
        {
            var aggregate = new InventoryAggregateRoot(command.Id, command.Name);

            _eventStore.Save(aggregate.Id, aggregate.GetUncommittedChanges(), -1);
        }
Exemplo n.º 2
0
        public void Handle(CreateInventoryItem command)
        {
            var aggregate = new InventoryAggregateRoot(command.Id, command.Name);

            _eventStore.Save(aggregate, -1);
        }