Skip to content

Commit 0c374fb

Browse files
committed
Fix tests in MinimalApiTests.integration_tests
1 parent c2fb9c4 commit 0c374fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LamarWithMinimalApiOnNet6/Program.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
using System;
21
using Lamar;
32
using Lamar.Microsoft.DependencyInjection;
4-
using Microsoft.AspNetCore.Builder;
53
using Microsoft.AspNetCore.Mvc;
6-
using Microsoft.Extensions.DependencyInjection;
74

85
#region sample_using_lamar_with_minimal_api
96

@@ -32,6 +29,9 @@
3229
// Add Minimal API routes
3330
app.MapGet("/", (ITest service) => service.SayHello());
3431

32+
//var container = (IContainer)app.Services;
33+
//container.GetServices<Microsoft.AspNetCore.Diagnostics.IDeveloperPageExceptionFilter>();
34+
3535
app.Run();
3636

3737
#endregion

0 commit comments

Comments
 (0)