Files
raven-test-integration/Global/GlobalAll.cs
2026-02-25 06:42:51 -08:00

30 lines
1.0 KiB
C#

using Xunit;
using FluentAssertions;
namespace raven_integration
{
public class GlobalAll
{
/// <summary>
/// Test Global routes
/// </summary>
[Fact]
public async Task GlobalOps()
{
//excercise the fetch and update routes but no actual changes because making a change of any kind to global will likely break other tests
//and we just need to see the routes are active really
ApiResponse a = await Util.GetAsync("global-biz-setting", await Util.GetTokenAsync("BizAdmin"));
Util.ValidateDataReturnResponseOk(a);
a.ObjectResponse["data"]["useInventory"].Should().NotBeNull();
var g = a.ObjectResponse["data"];
a = await Util.PutAsync("global-biz-setting", await Util.GetTokenAsync("BizAdmin"), g.ToString(Newtonsoft.Json.Formatting.None));
Util.ValidateHTTPStatusCode(a, 200);
}
//==================================================
}//eoc
}//eons