コード例 #1
0
        private void When(Events.V1.VariantAddedToProduct @event)
        {
            var variant = new ProductVariant(ApplyChange);

            variant.Route(@event);
            Variants.Add(variant);
        }
コード例 #2
0
 private void When(Events.V1.VariantAddedToProduct @event)
 {
     ProductContentId = new ProductContentId(@event.ProductContentId);
     ProductVariantId = new ProductVariantId(@event.ProductVariantId);
     ProductId        = new ProductId(@event.ProductId);
     VariantValue     = new ProductVariantTypeValue(@event.ProductId, @event.VariantTypeValueId, (Enums.VariantType)@event.VariantType);
     Barcode          = @event.Barcode;
 }