public void AddOrder(Order newOrder)
        {
            Require.NotNull(newOrder, nameof(newOrder));

            var orderId = _orderRepository.SaveOrder(newOrder);

            _orderManagmentEventSink.ConsumeEvent(new OrderPlaced(orderId));
        }
        public int SaveOrder(Order order)
        {
            Require.NotNull(order, nameof(order));

            var session = _databaseSessionProvider.GetCurrentSession();
            var newOrderId = (int)session.Save(order);
            return newOrderId;
        }