test(backend): add matchmaking relevance and ranking tests

This commit is contained in:
Rafał Tyński
2026-10-04 02:44:03 +02:00
parent 25ce901021
commit 182c26d9f8
5 changed files with 172 additions and 2 deletions
@@ -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 InnovationsControllerTests
{
private static InnovationsController CreateController(IInnovationService service)
{
var controller = new InnovationsController(service);
var controller = new InnovationsController(service, new StubMatchmakingService());
var identity = new ClaimsIdentity(
[new Claim("sub", "user:tester"), new Claim("role", "admin")],
authenticationType: "test");