public async Task ProcessAuthorizeAfterLoginAsync_no_id_param_should_return_error_page() { _mockSignInResponseStore.Messages.Add("123", new Message <SignInResponse>(new SignInResponse())); _context.HttpContext.SetUser(_user); var result = await _subject.ProcessAuthorizeAfterLoginAsync(_context); result.Should().BeAssignableTo <ErrorPageResult>(); }
public async Task ProcessAuthorizeAfterLoginAsync_no_user_should_return_error_page() { _context.HttpContext.SetUser(null); var result = await _subject.ProcessAuthorizeAfterLoginAsync(_context); result.Should().BeAssignableTo <ErrorPageResult>(); }
public async Task ProcessAuthorizeAfterLoginAsync_no_user_should_return_error_page() { _context.SetUser(null); var result = await _subject.ProcessAuthorizeAfterLoginAsync(_context); result.Should().BeOfType <AuthorizeResult>(); ((AuthorizeResult)result).Response.IsError.Should().BeTrue(); }