Ejemplo n.º 1
0
        public void HelpController_Edit_HttpGet_CallsGetByKey()
        {
            #region Arrange

            const string helpKey = "homepage";

            #endregion

            #region Act

            var result = _mockController.Edit(helpKey) as ViewResult;

            #endregion

            #region Assert


            Assert.IsNotNull(result);
            _mockContextHelpRefDataService.Verify(x => x.GetByHelpKey(helpKey), Times.Once);


            #endregion
        }
Ejemplo n.º 2
0
        public void HelpController_Edit_Get_ReturnsViewResult()
        {
            var result = _controller.Edit("homepage") as ViewResult;

            Assert.IsNotNull(result);
        }