Open JohanLarsson opened 5 years ago
[Test]
public void WhenMultipleRouteAttributesMissingAction()
{
var code = @"
namespace AspBox
{
using Microsoft.AspNetCore.Mvc;
[Route(↓""api/values"")]
[Route(""api/values/{id}"")]
[ApiController]
public class ValuesController : Controller
{
[HttpGet]
public IActionResult Get(int id)
{
return this.Ok(id);
}
}
}";
AnalyzerAssert.Diagnostics(Analyzer, ExpectedDiagnostic, code);
}
Maybe this should be a new id?
Check that