public void When_merging_two_application_It_should_throw() { var msg = new OneMsg(); var second = new SecondMsg(); msg.MsgIsTheApp().Add(second); var msg2 = new OneMsg(); var other = new OtherMsg(); msg2.MsgIsTheApp().Add(other); AssertIt.Fails(() => msg.MsgIsTheApp().Add(other)); }
public void Handle(OtherMsg @event) { Interlocked.Increment(ref _otherMsg); }