Skip to content

Commit

Permalink
fix: sonarqube rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ArwynFr committed Aug 13, 2024
1 parent 28dd280 commit c76a8f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace ArwynFr.IntegrationTesting.Tests.Target;

[ApiController]
[ApiController, Route("/api/entities")]
public class DummyController(DummyDbContext dbContext) : ControllerBase
{
private readonly DummyDbContext _dbContext = dbContext;

[HttpGet("/api/entities/{name}")]
[HttpGet("{name}")]
public async Task<Results<Ok<DummyEntity>, NotFound<string>>> ExecuteAsync(string name)
{
var value = await _dbContext.Entities.FirstOrDefaultAsync(entity => entity.Name == name);
Expand Down
7 changes: 5 additions & 2 deletions test/ArwynFr.IntegrationTesting.Tests.Target/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
await Task.Delay(TimeSpan.FromMilliseconds(10));
});
app.MapControllers();
app.Run();
await app.RunAsync();

public partial class Program;
public partial class Program
{
protected Program() { }
}

0 comments on commit c76a8f3

Please sign in to comment.