Example #1
0
        public void Apply(ProductCodeChanged e)
        {
            var product = GetById(e.Id);

            product.Code    = e.NewCode;
            product.Version = e.Version;
        }
Example #2
0
 private void Apply(ProductCodeChanged e)
 {
     Code = e.NewCode;
 }
Example #3
0
 public void AlterCode(ProductCodeChanged e, int version)
 {
     ApplyEvent(e, version);
 }