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
@@ -0,0 +1,25 @@
using TarninaHub.Application.Abstractions;
using TarninaHub.Application.Dtos;
namespace TarninaHub.Tests.Matchmaking;
public sealed class StubMatchmakingService : IMatchmakingService
{
public Task IndexInnovationAsync(string innovationId, CancellationToken cancellationToken) =>
Task.CompletedTask;
public Task IndexProblemAsync(string problemId, CancellationToken cancellationToken) =>
Task.CompletedTask;
public Task IndexSubmissionAsync(string submissionId, CancellationToken cancellationToken) =>
Task.CompletedTask;
public Task<int> ReindexAsync(CancellationToken cancellationToken) =>
Task.FromResult(0);
public Task<MatchResponse?> MatchAsync(
string submissionId,
MatchRequest request,
CancellationToken cancellationToken) =>
Task.FromResult<MatchResponse?>(new MatchResponse([], [], true));
}