public Task <Product> GetProduct(ProductId productId)
 {
     return(Task.FromResult(_repository[productId]));
 }
Esempio n. 2
0
 public RemoveProductCommand(CartId aggregateId, ProductId productId) : base(aggregateId)
 {
     ProductId = productId;
 }