Administrasjon.Controllers.AdminCustomerController.Index C# (CSharp) Method

Index() public method

public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult Index()
        {
            return View();
        }

Usage Example

 public void IndexTest()
 {
     //Arrange
     var controller = new AdminCustomerController(new CustomerBLL(new CustomerDALStub()), new LoggingBLL(new LoggingDALStub()));
     //Act
     var result = (ViewResult)controller.Index();
     //Assert
     Assert.AreEqual(result.ViewName, "");
 }