Esempio n. 1
0
        public void ModelIDEndPointQuery()
        {
            var modelrunProcessor = new DataAccessLayer.ModelRunRepository();
            var result            = modelrunProcessor.GetModelRun(conx, "model_id", new int[] { 37 }, "current");

            if (result[0].model_run_id == 2 &&
                result[0].model_run_name.ToLower().Trim() == "current davis - parker unit schedule" &&
                result[0].model_id == 37 &&
                result[0].model_name.ToLower() == "davis-parker hourly operational schedule")
            {
                Assert.AreEqual(1, 1);
            }
            else
            {
                Assert.AreEqual(0, 1);
            }
        }
Esempio n. 2
0
        public void ModelRunIDEndPointQuery()
        {
            var modelrunProcessor = new DataAccessLayer.ModelRunRepository();
            var result            = modelrunProcessor.GetModelRun(conx, "model_run_id", new int[] { 299 }, null);

            if (result[0].model_run_id == 299 &&
                result[0].model_run_name.ToLower().Trim() == "most probable 24 month study" &&
                result[0].model_id == 2 &&
                result[0].model_name.ToLower() == "aop model" &&
                result[0].user_name.ToLower() == "app_user")
            {
                Assert.AreEqual(1, 1);
            }
            else
            {
                Assert.AreEqual(0, 1);
            }
        }