public async Task ProcessAsync_authorize_path_should_return_authorization_result() { _context.Request.Method = "GET"; _context.Request.Path = new PathString("/connect/authorize"); _mockUserSession.User = _user; var result = await _subject.ProcessAsync(_context); result.Should().BeOfType <AuthorizeResult>(); }
public async Task ProcessAsync_post_to_entry_point_should_return_405() { _context.Request.Method = "POST"; var result = await _subject.ProcessAsync(_context); var statusCode = result as StatusCodeResult; statusCode.Should().NotBeNull(); statusCode.StatusCode.Should().Be(405); }