Exemplo n.º 1
0
        public void SubscribeToEvent_TEvent_invokes_bus_engine()
        {
            var sut = CreateSystemUnderTest();

            sut.SubscribeToEvent <TestEvent>();

            Assert.That(testBusEngine.IsEventHandeld <TestEvent>());
        }
        public void InMemoryBusEngine_IsEventHandled_is_true_when_ObserveEvent()
        {
            var busEngine = new InMemoryBusEngine();
            var builder   = new NybusBusBuilder(busEngine);

            var observable = builder.ObserveEvent <TestEvent>();

            busEngine.IsEventHandeld <TestEvent>();
        }