public void Handle(CreateInventoryItem command)
        {
            var aggregate = new InventoryAggregateRoot(command.Id, command.Name);

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

            _eventStore.Save(aggregate, -1);
        }