File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
test/MyTested.AspNetCore.Mvc.Caching.Test Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
using System . Reflection ;
2
2
using System . Runtime . InteropServices ;
3
+ using Microsoft . AspNetCore . Mvc . ApplicationParts ;
3
4
using Xunit ;
4
5
6
+ [ assembly: ApplicationPart ( "MyTested.AspNetCore.Mvc.Test.Setups" ) ]
7
+
5
8
[ assembly: AssemblyProduct ( "MyTested.AspNetCore.Mvc.Caching.Test" ) ]
6
9
[ assembly: ComVisible ( false ) ]
7
10
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ public void ConfigureServices(IServiceCollection services)
13
13
services . Replace < IMemoryCache , CustomMemoryCache > ( ServiceLifetime . Singleton ) ;
14
14
}
15
15
16
- public void Configure ( IApplicationBuilder app )
17
- {
18
- app . UseMvcWithDefaultRoute ( ) ;
19
- }
16
+ public void Configure ( IApplicationBuilder app ) => app
17
+ . UseRouting ( )
18
+ . UseEndpoints ( endpoints => endpoints
19
+ . MapDefaultControllerRoute ( ) ) ;
20
20
}
21
21
}
You can’t perform that action at this time.
0 commit comments