public void XingMonkeysTest()
        {
            var cls = new clsMonkeyBusiness();

            // Use this to test the response with the dynamic parameters
            var objResponse = cls.XingMonkeys(10, 5);

            Assert.Fail();
        }
Exemple #2
0
        // Commented out original Index method
        //public ActionResult Index() { return View(); }

        public ActionResult Index(MonkeysViewModel model)
        {
            // Crate new Model if parameter is null
            if (model == null)
            {
                model = new MonkeysViewModel();
            }

            // Initiate the Class & assign results to model
            var cls = new clsMonkeyBusiness();

            model.CrossingMonkeys = cls.XingMonkeys(model.LeftValue, model.RiteValue);

            return(View(model));
        }