Exemplo n.º 1
0
        public void Should_SubscribeOracleQueue()
        {
            var container  = IocBootstrapper.Instance;
            var subscriber = container.GetInstance <ISubscriber>();
            var handler    = new OrderMessageHandler();

            subscriber.Subscribe(handler);
        }
Exemplo n.º 2
0
        public void Should_GetQueueInfo_From_MessageHandler()
        {
            OrderMessageHandler orderHandler = new OrderMessageHandler();

            orderHandler.QueueName.ShouldBe("Order");

            LogMessageHandler logHandler = new LogMessageHandler();

            logHandler.QueueName.ShouldBe("Log");
        }