public void listener_tests_when_id_has_prefix()
        {
            var listener = new DeliverPizzaSagaListener2();
            var orderId  = new OrderId(5);

            var placed    = new OrderPlaced(orderId);
            var printed   = new BillPrinted(orderId);
            var received  = new PaymentReceived(orderId, Guid.NewGuid());
            var delivered = new PizzaDelivered(orderId);

            Assert.AreEqual("DeliverPizzaSaga2_" + (string)orderId, listener.GetCorrelationId(placed));
            Assert.AreEqual("DeliverPizzaSaga2_" + (string)orderId, listener.GetCorrelationId(printed));
            Assert.AreEqual("DeliverPizzaSaga2_" + (string)orderId, listener.GetCorrelationId(received));
            Assert.AreEqual("DeliverPizzaSaga2_" + (string)orderId, listener.GetCorrelationId(delivered));
        }
        public void listener_tests()
        {
            var listener = new DeliverPizzaSagaListener();
            var orderId  = new OrderId(4);

            var placed    = new OrderPlaced(orderId);
            var printed   = new BillPrinted(orderId);
            var received  = new PaymentReceived(orderId, Guid.NewGuid());
            var delivered = new PizzaDelivered(orderId);
            var prefix    = listener.Prefix;

            Assert.AreEqual(prefix + (string)orderId, listener.GetCorrelationId(placed));
            Assert.AreEqual(prefix + (string)orderId, listener.GetCorrelationId(printed));
            Assert.AreEqual(prefix + (string)orderId, listener.GetCorrelationId(received));
            Assert.AreEqual(prefix + (string)orderId, listener.GetCorrelationId(delivered));
        }
 public void On(PizzaDelivered pizzaDelivered)
 {
     _logger.Debug("Pizza delivered");
 }
 public void On(PizzaDelivered pizzaDelivered)
 {
     Log("Pizza delivered");
 }