File: TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsFullyQualifiedProducesResponseType.Input.cs
Web Access
Project: src\src\Mvc\Mvc.Api.Analyzers\test\Mvc.Api.Analyzers.Test.csproj (Mvc.Api.Analyzers.Test)
[assembly: Microsoft.AspNetCore.Mvc.ApiConventionType(typeof(Microsoft.AspNetCore.Mvc.DefaultApiConventions))]
 
namespace TestApp._INPUT_
{
    using Microsoft.AspNetCore.Mvc;
 
    [ApiController]
    [Route("[controller]/[action]")]
    public class BaseController : ControllerBase
    {
    }
}
 
namespace TestApp._INPUT_
{
    public class CodeFixAddsFullyQualifiedProducesResponseType : BaseController
    {
        public object GetItem(int id)
        {
            if (id == 0)
            {
                return NotFound();
            }
 
            if (id == 1)
            {
                return BadRequest();
            }
 
            return Accepted(new object());
        }
    }
}