253254255256257258259260261262263
Product product = new Product( tenantId, productId, productOwner.productOwnerId(), aName, aDescription, aDiscussionAvailability); this.productRepository().save(product);
7374757677787980818283
String newProductId = this.productApplicationService.newProduct( new NewProductCommand( "T-12345", productOwner.productOwnerId().id(), "My Product", "The description of My Product.")); Product newProduct = this.productRepository
9596979899100101102103104105
String newProductId = this.productApplicationService.newProductWithDiscussion( new NewProductCommand( "T-12345", productOwner.productOwnerId().id(), "My Product", "The description of My Product.")); Product newProduct = this.productRepository