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