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 }
public void HelpController_Edit_Get_ReturnsViewResult() { var result = _controller.Edit("homepage") as ViewResult; Assert.IsNotNull(result); }