9 references to JsonFormatterController
Microsoft.AspNetCore.Mvc.FunctionalTests (9)
JsonInputFormatterTestBase.cs (9)
115
var expected = new
JsonFormatterController
.SimpleModel()
124
var actual = await response.Content.ReadAsAsync<
JsonFormatterController
.SimpleModel>();
137
var expected = new
JsonFormatterController
.SimpleRecordModel(18, "James", "JnK");
141
var actual = await response.Content.ReadAsAsync<
JsonFormatterController
.SimpleRecordModel>();
154
var expected = new
JsonFormatterController
.SimpleModelWithValidation(123, "This is a very long name", StreetName: null);
157
var response = await Client.PostAsJsonAsync($"JsonFormatter/{nameof(
JsonFormatterController
.RoundtripModelWithValidation)}", expected);
185
var expected = new
JsonFormatterController
.SimpleModelWithValidation(99, "TestName", "Some address");
188
var response = await Client.PostAsJsonAsync($"JsonFormatter/{nameof(
JsonFormatterController
.RoundtripModelWithValidation)}", expected);
192
var actual = await response.Content.ReadFromJsonAsync<
JsonFormatterController
.SimpleModel>();