chore: deploy initial code base

This commit is contained in:
Thom Lamb
2026-05-12 10:34:30 -05:00
parent cce2961782
commit a81300a571
1829 changed files with 248331 additions and 1 deletions
@@ -0,0 +1,30 @@
namespace Strata.ContinuousImprovement.Api.Test.Integration.Tests
{
public static class HttpMessageResponseExtensions
{
public static void AssertIsValid(this HttpResponseMessage response, bool exportable = false, string version = "1.0")
{
Assert.Multiple(() =>
{
Assert.That(response.IsSuccessStatusCode, Is.True);
var headers = response.Headers.Where(x => x.Value != null)
.ToDictionary(k => k.Key, v => v.Value);
Assert.That(headers, Is.Not.Null.And.Not.Empty);
Assert.That(headers.ContainsKey("Api-Supported-Versions"), Is.True);
var apiVersion = headers["Api-Supported-Versions"].ToList();
Assert.That(apiVersion.Contains(version), Is.True);
if (exportable)
{
var content = response.Content;
Assert.That(content, Is.Not.Null);
headers = response.Content.Headers.Where(x => x.Value != null)
.ToDictionary(k => k.Key, v => v.Value);
Assert.That(headers.ContainsKey("Content-Type"), Is.True);
var contentType = headers["Content-Type"].ToList();
Assert.That(contentType.Contains("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"), Is.True);
}
});
}
}
}