public void Index()
        {
            ApplicationDbContext context    = new ApplicationDbContext();
            IUnitOfWork          unitOfWork = new UnitOfWork(context);
            var controller = new JobCardsController(unitOfWork);
            var result     = controller.Index() as ViewResult;

            Assert.AreEqual(expected: "Index", actual: result.ViewName);
        }
Example #2
0
        public void TestIndexView()
        {
            ApplicationDbContext context    = new ApplicationDbContext();
            IUnitOfWork          unitOfwork = new UnitOfWork(context);
            var controller = new JobCardsController(unitOfwork);
            var result     = controller.Index() as ViewResult;

            Assert.AreEqual("Index", result.ViewName);
        }