diff --git a/tests/FiscalOS.API.Tests/Integration/RefreshTests.cs b/tests/FiscalOS.API.Tests/Integration/RefreshTests.cs new file mode 100644 index 0000000..f6dd076 --- /dev/null +++ b/tests/FiscalOS.API.Tests/Integration/RefreshTests.cs @@ -0,0 +1,15 @@ + +namespace FiscalOS.API.Tests.Integration; + +public class RefreshTests(TestApi testApi) : IntegrationTest(testApi) +{ + private static readonly Uri RefreshUri = new("/refresh", UriKind.Relative); + + [Fact] + public async Task Refresh_WhenCalledWithNoAccessToken_ItShouldReturn401Unauthorized() + { + var response = await Client.PostAsync(RefreshUri, null, TestContext.Current.CancellationToken); ; + + response.StatusCode.Should().Be(HttpStatusCode.Unauthorized); + } +} \ No newline at end of file