Пример #1
0
 public void FacaAlgoImpressionante()
 {
     _repository.DoSomething();
     DomainEvents.Raise(new DomainEvent("1"));
     DomainEvents.EnqueueEvent(new DomainEvent("2"));
     DomainEvents.EnqueueEvent(new DomainEvent("3"));
     DomainEvents.EnqueueEvent(new DomainEvent("4"));
     DomainEvents.RaiseEnqueuedEvents();
 }