Skip to content

Commit fb2fc26

Browse files
committed
Ported Caching.Test package (#326)
1 parent 4cefc8e commit fb2fc26

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

test/MyTested.AspNetCore.Mvc.Caching.Test/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
using System.Reflection;
22
using System.Runtime.InteropServices;
3+
using Microsoft.AspNetCore.Mvc.ApplicationParts;
34
using Xunit;
45

6+
[assembly: ApplicationPart("MyTested.AspNetCore.Mvc.Test.Setups")]
7+
58
[assembly: AssemblyProduct("MyTested.AspNetCore.Mvc.Caching.Test")]
69
[assembly: ComVisible(false)]
710

test/MyTested.AspNetCore.Mvc.Caching.Test/Setups/Startups/CachingDataStartup.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ public void ConfigureServices(IServiceCollection services)
1313
services.Replace<IMemoryCache, CustomMemoryCache>(ServiceLifetime.Singleton);
1414
}
1515

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());
2020
}
2121
}

0 commit comments

Comments
 (0)