Esempio n. 1
0
        public void TestDetailsView()
        {
            var controller = new UserDemandsBoController();
            var result     = controller.Details(3) as ViewResult;

            Assert.AreEqual("Details", result.ViewName);
        }
Esempio n. 2
0
        public void TestDetailsViewData()
        {
            var controller = new UserDemandsBoController();
            var result     = controller.Details(3) as ViewResult;
            var userDemand = (UserDemand)result.ViewData.Model;

            Assert.AreEqual(3, userDemand.ID);
        }