public void TestgetWaterLevelForYear()
 {
     GaugeController controller = new GaugeController();
     JsonResult resultJson = controller.jsonResult("000001") as JsonResult;
     string[] stationData = resultJson.Data.ToString().Split(';');
     Assert.AreEqual("1911", stationData[3]);
 }
 public void TestgetWaterLevelForNumberOfOutputParam()
 {
     GaugeController controller = new GaugeController();
     JsonResult resultJson = controller.jsonResult("000001") as JsonResult;
     string [] stationData = resultJson.Data.ToString().Split(';');
     Assert.AreEqual(5, stationData.Length);
 }
 public void TestLastLevelResult()
 {
     GaugeController controller = new GaugeController();
     JsonResult waterLevel = controller.LastLevelResult("000001") as JsonResult;
     Assert.AreEqual(Convert.ToDouble(562),waterLevel.Data);
 }