From 7e6d52d81bc2ca938bafe6352ca58d5df7c49918 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Mon, 6 Jan 2025 19:06:47 -0500 Subject: [PATCH] aesthetics: move commonly-used function to top of file --- .../tests/Mocha.Oms.Server.Tests/BasicTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mocha-dotnet/tests/Mocha.Oms.Server.Tests/BasicTests.cs b/mocha-dotnet/tests/Mocha.Oms.Server.Tests/BasicTests.cs index dc413c4..c6dca83 100644 --- a/mocha-dotnet/tests/Mocha.Oms.Server.Tests/BasicTests.cs +++ b/mocha-dotnet/tests/Mocha.Oms.Server.Tests/BasicTests.cs @@ -27,6 +27,11 @@ public class Tests program.Stop(); } + protected string? BuildUrl(string v) + { + return String.Format("http://localhost:{0}{1}", program.Port, v); + } + [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["value"]["widget"].ToString(), Is.EqualTo("root")); } - - protected string? BuildUrl(string v) - { - return String.Format("http://localhost:{0}{1}", program.Port, v); - } } \ No newline at end of file