public DeliverMIDASTrafficDataResponseContainer DeliverMIDASTrafficData(DeliverMIDASTrafficDataRequestContainer container)
 {
     MidasTrafficDataService midasTrafficDataService = new MidasTrafficDataService();
     log4net.Config.XmlConfigurator.Configure();
     log.Info("Deliver MIDAS traffic data request received");
     DeliverMIDASTrafficDataResponse response = midasTrafficDataService.GetDeliverMidasTrafficDataResponse(container.DeliverMIDASTrafficDataRequest);
     return new DeliverMIDASTrafficDataResponseContainer(response);
 }
        public void CheckErrorInGetDeliverMidasTrafficDataResponseTest()
        {
            IMidasTrafficDataService midasTrafficDataService = new MidasTrafficDataService();
            DeliverMIDASTrafficDataRequest deliverMIDASTrafficDataRequest = new DeliverMIDASTrafficDataRequest();

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

            deliverMIDASTrafficDataRequest.d2LogicalModel = model;
            string expected = "DeliverMIDASTrafficDataRequest: Successful Delivery";
            string actual;
            // This should cause a SoapException
            actual = (midasTrafficDataService.GetDeliverMidasTrafficDataResponse(deliverMIDASTrafficDataRequest)).status;
            Assert.AreEqual(expected, actual);
        }
        public void CheckValidGetDeliverMidasTrafficDataResponseTest()
        {
            IMidasTrafficDataService midasTrafficDataService = new MidasTrafficDataService();
            DeliverMIDASTrafficDataRequest deliverMIDASTrafficDataRequest = new DeliverMIDASTrafficDataRequest();
            deliverMIDASTrafficDataRequest.d2LogicalModel = model;
            string expected = "DeliverMIDASTrafficDataRequest: Successful Delivery";
            string actual;
            actual = (midasTrafficDataService.GetDeliverMidasTrafficDataResponse(deliverMIDASTrafficDataRequest)).status;

            Assert.AreEqual(expected, actual);
        }