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);
        }
Exemplo n.º 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);
        }