public DeliverAverageJourneyTimeResponseContainer DeliverAverageJourneyTime(DeliverAverageJourneyTimeRequestContainer container)
        {
            AverageJourneyTimeService averageJourneyTimeService = new AverageJourneyTimeService();
            log4net.Config.XmlConfigurator.Configure();
            log.Info("Deliver average journey time request received");
            DeliverAverageJourneyTimeResponse response = averageJourneyTimeService.GetDeliverAverageJourneyTimeResponse(container.DeliverAverageJourneyTimeRequest);

            return new DeliverAverageJourneyTimeResponseContainer(response);
        }
        public void CheckErrorInGetDeliverAverageJourneyTimeResponseTest()
        {
            IAverageJourneyTimeService averageJourneyTimeService = new AverageJourneyTimeService();
            DeliverAverageJourneyTimeRequest deliverAverageJourneyTimeRequest = new DeliverAverageJourneyTimeRequest();

            model = null; // This will be checked by ExampleDataCheckOk(d2LogicalModel)

            deliverAverageJourneyTimeRequest.D2LogicalModel = model;
            string expected = "DeliverAverageJourneyTimeRequest: Successful Delivery";
            string actual;
            // This should cause a SoapException
            actual = (averageJourneyTimeService.GetDeliverAverageJourneyTimeResponse(deliverAverageJourneyTimeRequest)).status;

            Assert.AreEqual(expected, actual);
        }
        public void CheckValidGetDeliverAverageJourneyTimeResponseTest()
        {
            IAverageJourneyTimeService averageJourneyTimeService = new AverageJourneyTimeService();
            DeliverAverageJourneyTimeRequest deliverAverageJourneyTimeRequest = new DeliverAverageJourneyTimeRequest();
            deliverAverageJourneyTimeRequest.D2LogicalModel = model;
            string expected = "DeliverAverageJourneyTimeRequest: Successful Delivery";
            string actual;
            actual = (averageJourneyTimeService.GetDeliverAverageJourneyTimeResponse(deliverAverageJourneyTimeRequest)).status;

            Assert.AreEqual(expected, actual);
        }