public CreateProductCommand(string title, string description, int quantity, string size, EStatus status, EFreight freight, string imageUrl, Guid userId) { Title = title; Description = description; Quantity = quantity; Size = size; Status = status; Freight = freight; ImageUrl = imageUrl; UserId = UserId; }
public Product(Guid id, string title, string description, int quantity, string size, EStatus status, EFreight freight, string imageUrl, Guid userId) { Id = id; Title = title; Description = description; Quantity = quantity; Size = size; Status = status; Freight = freight; ImageUrl = imageUrl; UserId = userId; }
public ProductCreatedEvent(Guid id, string title, string description, int quantity, string size, EStatus status, EFreight freight, string imageUrl) { Title = title; Description = description; Quantity = quantity; Size = size; Status = status; Freight = freight; ImageUrl = imageUrl; AggregateId = id; }