public async Task Then_IfNoSession_RedirectsToSearchIndex() { var result = await _certificateOptionController.Option() as RedirectToActionResult; result.ControllerName.Should().Be("Search"); result.ActionName.Should().Be("Index"); }
public void Arrange() { var certificateGradeController = new CertificateOptionController(MockedLogger.Object, MockHttpContextAccessor.Object, ApiClient); _result = certificateGradeController.Option(Certificate.Id).GetAwaiter().GetResult(); }