Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

Commit 1d4ceef

Browse files
committed
Turning on warnings as errors for routing
1 parent 4a51ced commit 1d4ceef

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

samples/RoutingSample.Web/RoutingSample.Web.kproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
<Compile Include="DelegateRouteEndpoint.cs" />
2929
<Compile Include="DictionaryExtensions.cs" />
3030
<Compile Include="PrefixRoute.cs" />
31-
<Compile Include="RouteCollectionBuilderExtensions.cs" />
31+
<Compile Include="RouteBuilderExtensions.cs" />
3232
<Compile Include="Startup.cs" />
3333
</ItemGroup>
3434
<Import Project="$(VSToolsPath)\AspNet\Microsoft.Web.AspNet.targets" Condition="'$(VSToolsPath)' != ''" />
35-
</Project>
35+
</Project>

src/Microsoft.AspNet.Routing/project.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"version": "0.1-alpha-*",
3+
"compilationOptions": {
4+
"warningsAsErrors": true
5+
},
36
"dependencies": {
47
"Microsoft.AspNet.Http": "0.1-alpha-*",
58
"Microsoft.Framework.DependencyInjection" : "0.1-alpha-*"

test/Microsoft.AspNet.Routing.Tests/RouteCollectionTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private static INamedRouter CreateNamedRoute(string name, bool accept = false)
202202

203203
target
204204
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
205-
.Callback<RouteContext>(async (c) => c.IsHandled = accept)
205+
.Callback<RouteContext>((c) => c.IsHandled = accept)
206206
.Returns(Task.FromResult<object>(null))
207207
.Verifiable();
208208

@@ -236,7 +236,7 @@ private static Mock<IRouter> CreateRoute(bool accept = true)
236236

237237
target
238238
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
239-
.Callback<RouteContext>(async (c) => c.IsHandled = accept)
239+
.Callback<RouteContext>((c) => c.IsHandled = accept)
240240
.Returns(Task.FromResult<object>(null))
241241
.Verifiable();
242242

test/Microsoft.AspNet.Routing.Tests/Template/TemplateRouteTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ private static IRouter CreateTarget(bool accept = true)
555555

556556
target
557557
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
558-
.Callback<RouteContext>(async (c) => c.IsHandled = accept)
558+
.Callback<RouteContext>((c) => c.IsHandled = accept)
559559
.Returns(Task.FromResult<object>(null));
560560

561561
return target.Object;

test/Microsoft.AspNet.Routing.Tests/project.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"version": "0.1-alpha-*",
3+
"compilationOptions": {
4+
"warningsAsErrors": true
5+
},
36
"dependencies": {
47
"Microsoft.AspNet.Http" : "0.1-alpha-*",
58
"Microsoft.AspNet.Routing" : "",

0 commit comments

Comments
 (0)