Skip to content

Commit c0b0ec7

Browse files
Chris Martinezcommonsensesoftware
authored andcommitted
Use model binding in acceptance tests
1 parent 82c5260 commit c0b0ec7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/Microsoft.AspNetCore.Mvc.Acceptance.Tests/Mvc/ByNamespace/Controllers/V1/AgreementsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
public class AgreementsController : Controller
66
{
77
[HttpGet]
8-
public IActionResult Get( string accountId ) => Ok( new Agreement( GetType().FullName, accountId, HttpContext.GetRequestedApiVersion().ToString() ) );
8+
public IActionResult Get( string accountId, ApiVersion apiVersion ) => Ok( new Agreement( GetType().FullName, accountId, apiVersion.ToString() ) );
99
}
1010
}

test/Microsoft.AspNetCore.Mvc.Acceptance.Tests/Mvc/ByNamespace/Controllers/V2/AgreementsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
public class AgreementsController : Controller
66
{
77
[HttpGet]
8-
public IActionResult Get( string accountId ) => Ok( new Agreement( GetType().FullName, accountId, HttpContext.GetRequestedApiVersion().ToString() ) );
8+
public IActionResult Get( string accountId, ApiVersion apiVersion ) => Ok( new Agreement( GetType().FullName, accountId, apiVersion.ToString() ) );
99
}
1010
}

test/Microsoft.AspNetCore.Mvc.Acceptance.Tests/Mvc/ByNamespace/Controllers/V3/AgreementsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
public class AgreementsController : Controller
66
{
77
[HttpGet]
8-
public IActionResult Get( string accountId ) => Ok( new Agreement( GetType().FullName, accountId, HttpContext.GetRequestedApiVersion().ToString() ) );
8+
public IActionResult Get( string accountId, ApiVersion apiVersion ) => Ok( new Agreement( GetType().FullName, accountId, apiVersion.ToString() ) );
99
}
1010
}

0 commit comments

Comments
 (0)