Beispiel #1
0
        public void Raise()
        {
            var des = new DomainEventStore();

            des.Raise(De);

            AssertEnumerator(des.GetEnumerator());
            AssertEnumerator(((IEnumerable)des).GetEnumerator());
        }
Beispiel #2
0
 public void Update(UpdateProduct command, [CanBeNull] IdentityUser user = null)
 {
     Name            = command.Name;
     Price           = command.Price;
     DiscountPercent = command.DiscountPercent;
     _domainEventStore.Raise(new AuditLog
     {
         EntityId  = Id,
         EventName = "Product Updated",
         UserName  = user?.UserName ?? "Anonymous"
     });
 }
 public void DoSomething()
 {
     DomainEventStore.Raise(new DomainModelEvent2(Id));
 }