public void FireAnotherStateChange( Action<DomainEvent> inspector ) { var evt = new AnotherEvent(); RaiseEvent(evt); inspector(evt); }
public void FireAnotherStateChange( Action <DomainEvent> inspector ) { var evt = new AnotherEvent(); RaiseEvent(evt); inspector(evt); }
public void DefaultingDispatcherDeserializesCorrectly() { using (var publisher = new EventPublisher()) using (var target = new DefaultingDispatcherMock()) { target.Open(); var evt = new AnotherEvent() { SomeValue = 7 }; publisher.Publish(evt); Thread.Sleep(100); Assert.Equal(true, target.DefaultHandlerHasBeenCalled); Assert.Equal(7, target.DefaultHandlerObject.Value <int>("SomeValue")); Assert.Equal("Dummy.AnotherEvent", target.DefaultHandlerObject.Value <string>("RoutingKey")); Assert.Equal(evt.Timestamp, target.DefaultHandlerObject.Value <long>("Timestamp")); Assert.Equal("InfoSupport.WSA.Infrastructure.Test.dummies.AnotherEvent", target.DefaultHandlerObject.Value <string>("TypeName")); } }
void On(AnotherEvent @event) { AnotherEventOnCalled++; }
protected void Apply(AnotherEvent evt) { }
public void Apply(AnotherEvent e) { }
public void Handle(AnotherEvent message) => Log <CombinationEventHandler, AnotherEvent>(message.Id);
public void Handle(IViewContext context, AnotherEvent domainEvent) { ProcessedEvents++; }