Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevJoy committed Dec 6, 2024
1 parent 3291fec commit fd544c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public ActionResult OnGet()
var whitelistedAccessToken = configuration.GetRequiredValue("RequestTrnAccessToken");
if (!whitelistedAccessToken.Equals(AccessToken, StringComparison.Ordinal))
{
return BadRequest();
return NotFound();
}
return Page();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ public async Task Get_MissingAccessToken_ReturnsBadRequest()
var response = await HttpClient.SendAsync(request);

// Assert
Assert.Equal(StatusCodes.Status400BadRequest, (int)response.StatusCode);
Assert.Equal(StatusCodes.Status404NotFound, (int)response.StatusCode);
}
}

0 comments on commit fd544c9

Please sign in to comment.