public void UnityMvcController_Index() { var clientobj = new myDotnet.UnityClasses.DBClient101(); var obj = new myDotnet.Controllers.UnityMvcController(clientobj); var result = obj.Index() as ViewResult; Assert.AreEqual("Index", result.ViewName); }
public void UnityMvcController_listClient() { var clientobj = new myDotnet.UnityClasses.DBClient101(); var container = new UnityContainer(); // var controller = container.Resolve<ControllerContext>(); var obj = new myDotnet.Controllers.UnityMvcController(clientobj); var result = obj.listClient() as ViewResult; Assert.AreEqual("listClient", result.ViewName); }