public void FormController_ClearFormDataPOST_ShouldCallClearFormData() { var stubWebpage = new StubWebpage(); _formController.ClearFormData_POST(stubWebpage); A.CallTo(() => _formAdminService.ClearFormData(stubWebpage)).MustHaveHappened(); }
public void FormController_ClearFormDataPOST_ShouldReturnRedirectToRouteResult() { var stubWebpage = new StubWebpage(); var result = _formController.ClearFormData_POST(stubWebpage); result.Should().BeOfType <RedirectToRouteResult>(); }