Ejemplo n.º 1
0
        public async Task Then_IfNoSession_RedirectsToSearchIndex()
        {
            var result = await _certificateOptionController.Option() as RedirectToActionResult;

            result.ControllerName.Should().Be("Search");
            result.ActionName.Should().Be("Index");
        }
Ejemplo n.º 2
0
        public void Arrange()
        {
            var certificateGradeController = new CertificateOptionController(MockedLogger.Object, MockHttpContextAccessor.Object, ApiClient);

            _result = certificateGradeController.Option(Certificate.Id).GetAwaiter().GetResult();
        }