private void When(Events.V1.ContentAddedToProduct @event) { var content = new ProductContent(ApplyChange); content.Route(@event); Contents.Add(content); }
private void When(Events.V1.ContentAddedToProduct @event) { ProductContentId = new ProductContentId(@event.ProductContentId); ProductId = new ProductId(@event.ProductId); VariantValue = new ProductContentVariantValue(ProductId, new VariantTypeValueId(@event.VariantTypeValueId), (Enums.VariantType)@event.VariantType); Status = (Enums.ProductContentStatus)@event.ProductContentStatus; Description = @event.Description; }