DigipostClientLibWebapp.Controllers.IdentifyController.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 Index()
        {
            // Arrange
            var serviceMock = new Mock<IDigipostService>();
            var controller = new IdentifyController(serviceMock.Object);

            // Act
            var result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }