Esempio n. 1
0
        public void IndexTest()
        {
            var controller = new WindMonitoringController();
            var result     = controller.Index();

            Assert.IsInstanceOfType(result, typeof(ViewResult));
        }
Esempio n. 2
0
        public void GetPredictedSpeedTest()
        {
            var controller = new WindMonitoringController();
            var result     = controller.GetPredictedSpeed("KA-BA-01") as JsonResult;

            Assert.IsInstanceOfType(result, typeof(JsonResult));
            Assert.AreEqual(1, ((int)(result.Data)));
        }
Esempio n. 3
0
        public void GetInitialDataTest()
        {
            var controller = new WindMonitoringController();
            var result     = controller.GetInitialData() as JsonResult;

            Assert.IsInstanceOfType(result, typeof(JsonResult));
            Assert.AreEqual(4, ((WindMonitoring)(result.Data)).StateList.Count);
        }