1 type derived from BaseModel
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
ApiResponseTypeProviderTest.cs (1)
803
public class DerivedModel :
BaseModel
{ }
20 references to BaseModel
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (20)
ApiResponseTypeProviderTest.cs (20)
40
Assert.Equal(typeof(
BaseModel
), responseType.Type);
69
[Produces(typeof(
BaseModel
))]
72
public Task<ActionResult<
BaseModel
>> Get(int id) => null;
84
new FilterDescriptor(new ProducesResponseTypeAttribute(typeof(
BaseModel
), 201), FilterScope.Action),
105
Assert.Equal(typeof(
BaseModel
), responseType.Type);
163
Assert.Equal(typeof(
BaseModel
), responseType.Type);
192
public Task<ActionResult<
BaseModel
>> DeleteBase(int id) => null;
214
Assert.Equal(typeof(
BaseModel
), responseType.Type);
225
public Task<ActionResult<
BaseModel
>> PostModel(int id,
BaseModel
model) => null;
261
Assert.Equal(typeof(
BaseModel
), responseType.Type);
281
public Task<ActionResult<
BaseModel
>> Put(int id,
BaseModel
model) => null;
309
Assert.Equal(typeof(
BaseModel
), responseType.Type);
352
Assert.Equal(typeof(
BaseModel
), responseType.Type);
412
Assert.Equal(typeof(
BaseModel
), responseType.Type);
455
Assert.Equal(typeof(
BaseModel
), responseType.Type);
498
Assert.Equal(typeof(
BaseModel
), responseType.Type);
713
actionDescriptor.FilterDescriptors.Add(new FilterDescriptor(new ProducesAttribute("text/xml") { Type = typeof(
BaseModel
) }, FilterScope.Action));
728
Assert.Equal(typeof(
BaseModel
), responseType.Type);