virb30 / lml-commerce

2 stars 0 forks source link

Implement CreateProductUseCase #71

Closed virb30 closed 8 months ago

virb30 commented 10 months ago

Add CreateProductUseCase which will be responsible for creating a new product.

Rules:

  1. A product must have a description.
  2. Two products must not have the exact same description
  3. Product code must be unique
  4. Stock of new products must be 0