Fix breaking changes to functional tests
This commit is contained in:
parent
32da2b8c46
commit
8bc0056c85
|
|
@ -25,6 +25,6 @@ namespace LoggingWebSite
|
||||||
|
|
||||||
public string Query { get; set; }
|
public string Query { get; set; }
|
||||||
|
|
||||||
public IEnumerable<KeyValuePair<string, StringValues>> Cookies { get; set; }
|
public IEnumerable<KeyValuePair<string, string>> Cookies { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -107,7 +107,7 @@ namespace ModelBindingWebSite.Controllers
|
||||||
|
|
||||||
public async Task<Employee> GetEmployeeAsync_BindToBaseDeclaredType()
|
public async Task<Employee> GetEmployeeAsync_BindToBaseDeclaredType()
|
||||||
{
|
{
|
||||||
var backingStore = new ReadableStringCollection(
|
var backingStore = new QueryCollection(
|
||||||
new Dictionary<string, StringValues>
|
new Dictionary<string, StringValues>
|
||||||
{
|
{
|
||||||
{ "Parent.Name", new[] { "fatherName"} },
|
{ "Parent.Name", new[] { "fatherName"} },
|
||||||
|
|
@ -120,7 +120,7 @@ namespace ModelBindingWebSite.Controllers
|
||||||
employee,
|
employee,
|
||||||
employee.GetType(),
|
employee.GetType(),
|
||||||
prefix: string.Empty,
|
prefix: string.Empty,
|
||||||
valueProvider: new ReadableStringCollectionValueProvider(
|
valueProvider: new QueryStringValueProvider(
|
||||||
BindingSource.Query,
|
BindingSource.Query,
|
||||||
backingStore,
|
backingStore,
|
||||||
CultureInfo.CurrentCulture),
|
CultureInfo.CurrentCulture),
|
||||||
|
|
@ -131,7 +131,7 @@ namespace ModelBindingWebSite.Controllers
|
||||||
|
|
||||||
public async Task<User> GetUserAsync_ModelType_IncludeAll(int id)
|
public async Task<User> GetUserAsync_ModelType_IncludeAll(int id)
|
||||||
{
|
{
|
||||||
var backingStore = new ReadableStringCollection(
|
var backingStore = new QueryCollection(
|
||||||
new Dictionary<string, StringValues>
|
new Dictionary<string, StringValues>
|
||||||
{
|
{
|
||||||
{ "Key", new[] { "123"} },
|
{ "Key", new[] { "123"} },
|
||||||
|
|
@ -144,7 +144,7 @@ namespace ModelBindingWebSite.Controllers
|
||||||
await TryUpdateModelAsync(user,
|
await TryUpdateModelAsync(user,
|
||||||
typeof(User),
|
typeof(User),
|
||||||
prefix: string.Empty,
|
prefix: string.Empty,
|
||||||
valueProvider: new ReadableStringCollectionValueProvider(
|
valueProvider: new QueryStringValueProvider(
|
||||||
BindingSource.Query,
|
BindingSource.Query,
|
||||||
backingStore,
|
backingStore,
|
||||||
CultureInfo.CurrentCulture),
|
CultureInfo.CurrentCulture),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue