test(backend): add matchmaking relevance and ranking tests
This commit is contained in:
@@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using TarninaHub.Application.Abstractions;
|
||||
using TarninaHub.Application.Dtos;
|
||||
using TarninaHub.Controllers;
|
||||
using TarninaHub.Tests.Matchmaking;
|
||||
|
||||
namespace TarninaHub.Tests.Controllers;
|
||||
|
||||
@@ -11,7 +12,7 @@ public class SubmissionsControllerTests
|
||||
{
|
||||
private static SubmissionsController CreateController(ISubmissionService service, string role = "operator")
|
||||
{
|
||||
var controller = new SubmissionsController(service);
|
||||
var controller = new SubmissionsController(service, new StubMatchmakingService());
|
||||
var identity = new ClaimsIdentity(
|
||||
[new Claim("sub", "user:tester"), new Claim("role", role)],
|
||||
authenticationType: "test");
|
||||
|
||||
Reference in New Issue
Block a user