aesthetics: move commonly-used function to top of file
This commit is contained in:
parent
e2f691a0de
commit
7e6d52d81b
@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user