Skip to content

Commit 4b9b0e8

Browse files
authored
[Tests] Drop reference to Microsoft.AspNetCore (#462)
1 parent 27090e1 commit 4b9b0e8

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

test/test-applications/integrations/TestApplication.HttpServer/Program.cs

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,18 @@
1414
// limitations under the License.
1515
// </copyright>
1616

17+
using TestApplication.HttpServer;
1718
using TestApplication.Shared;
1819

19-
namespace TestApplication.HttpServer;
20+
ConsoleHelper.WriteSplashScreen(args);
2021

21-
public class Program
22-
{
23-
public static void Main(string[] args)
24-
{
25-
ConsoleHelper.WriteSplashScreen(args);
22+
var builder = WebApplication.CreateBuilder(args);
2623

27-
var builder = WebApplication.CreateBuilder(args);
24+
const string requestPath = "/request";
25+
var app = builder.Build();
26+
using var observer = new LifetimeObserver(app, requestPath);
2827

29-
var requestPath = "/request";
30-
var app = builder.Build();
31-
using var observer = new LifetimeObserver(app, requestPath);
28+
app.UseWelcomePage("/alive-check");
29+
app.MapGet(requestPath, () => "TestApplication.HttpServer");
3230

33-
app.UseWelcomePage("/alive-check");
34-
app.MapGet(requestPath, () =>
35-
{
36-
return "TestApplication.HttpServer";
37-
});
38-
39-
app.Run();
40-
}
41-
}
31+
app.Run();

test/test-applications/integrations/TestApplication.HttpServer/TestApplication.HttpServer.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
98
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
109
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
1110
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />

0 commit comments

Comments
 (0)