aesthetics: move commonly-used function to top of file

This commit is contained in:
Michael Becker 2025-01-06 19:06:47 -05:00
parent e2f691a0de
commit 7e6d52d81b

View File

@ -27,6 +27,11 @@ public class Tests
program.Stop(); program.Stop();
} }
protected string? BuildUrl(string v)
{
return String.Format("http://localhost:{0}{1}", program.Port, v);
}
[Test] [Test]
public async Task Tenant_List_Test() public async Task Tenant_List_Test()
{ {
@ -117,9 +122,4 @@ public class Tests
Assert.That(json["result"].ToString(), Is.EqualTo("success")); Assert.That(json["result"].ToString(), Is.EqualTo("success"));
Assert.That(json["value"]["widget"].ToString(), Is.EqualTo("root")); Assert.That(json["value"]["widget"].ToString(), Is.EqualTo("root"));
} }
protected string? BuildUrl(string v)
{
return String.Format("http://localhost:{0}{1}", program.Port, v);
}
} }