public DeliverAverageSpeedFusedDataResponseContainer DeliverAverageSpeedFusedData(DeliverAverageSpeedFusedDataRequestContainer container) { AverageSpeedFusedDataService averageSpeedFusedDataService = new AverageSpeedFusedDataService(); log4net.Config.XmlConfigurator.Configure(); log.Info("Deliver average speed fused data request received"); DeliverAverageSpeedFusedDataResponse response = averageSpeedFusedDataService.GetDeliverAverageSpeedFusedDataResponse(container.DeliverAverageSpeedFusedDataRequest); return new DeliverAverageSpeedFusedDataResponseContainer(response); }
public void CheckErrorInGetDeliverAverageSpeedFusedDataResponseTest() { IAverageSpeedFusedDataService averageSpeedFusedData = new AverageSpeedFusedDataService(); DeliverAverageSpeedFusedDataRequest deliverAverageSpeedFusedDataRequest = new DeliverAverageSpeedFusedDataRequest(); model = null; // This will be checked by ExampleDataCheckOk(d2LogicalModel) deliverAverageSpeedFusedDataRequest.d2LogicalModel = model; string expected = "DeliverAverageSpeedFusedDataRequest: Successful Delivery"; string actual; // This should cause a SoapException actual = (averageSpeedFusedData.GetDeliverAverageSpeedFusedDataResponse(deliverAverageSpeedFusedDataRequest)).status; Assert.AreEqual(expected, actual); }
public void CheckValidGetDeliverAverageSpeedFusedDataResponseTest() { IAverageSpeedFusedDataService averageSpeedFusedData = new AverageSpeedFusedDataService(); DeliverAverageSpeedFusedDataRequest deliverAverageSpeedFusedDataRequest = new DeliverAverageSpeedFusedDataRequest(); deliverAverageSpeedFusedDataRequest.d2LogicalModel = model; string expected = "DeliverAverageSpeedFusedDataRequest: Successful Delivery"; string actual; actual = (averageSpeedFusedData.GetDeliverAverageSpeedFusedDataResponse(deliverAverageSpeedFusedDataRequest)).status; Assert.AreEqual(expected, actual); }