continue writing tests for episode controller. add assert helper.

This commit is contained in:
StevanFreeborn
2022-07-06 19:46:19 -05:00
parent ae782e8c56
commit 1e404b0467
5 changed files with 79 additions and 31 deletions
+15
View File
@@ -0,0 +1,15 @@
using FluentAssertions;
using System.Net.Http.Headers;
namespace server.tests.Helpers
{
internal static class AssertHelper
{
public static void CheckForRateLimitingHeaders(HttpResponseHeaders headers)
{
headers.Should().ContainKey("X-Rate-Limit-Limit");
headers.Should().ContainKey("X-Rate-Limit-Remaining");
headers.Should().ContainKey("X-Rate-Limit-Reset");
}
}
}