public ProdutoAggregateTest() { _aggregate = new ProdutoAggregate(); }
public async Task ExecuteAsync(CriarProdutoCommand command) { var produto = new ProdutoAggregate(command.AggregateId, command.Codigo, command.Nome, command.Preco, command.Quantidade); await _repository.AddAsync(produto); }