Add tests for partnership workflow, middleman adaptation and idea notifications; extract reusable test stubs into separate files; add architecture guard forbidding object-valued dictionaries in data contracts.
19 lines
718 B
C#
19 lines
718 B
C#
using TarninaHub.Application.Abstractions;
|
|
using TarninaHub.Application.Dtos;
|
|
|
|
namespace TarninaHub.Tests.Stubs;
|
|
|
|
/// <summary>No-op ITestFeedbackService stub for controller tests.</summary>
|
|
public sealed class StubTestFeedbackService : ITestFeedbackService
|
|
{
|
|
public Task<TestFeedbackResponse?> CreateAsync(
|
|
string innovationId,
|
|
string authorId,
|
|
CreateTestFeedbackRequest request,
|
|
CancellationToken cancellationToken) => Task.FromResult<TestFeedbackResponse?>(null);
|
|
|
|
public Task<IReadOnlyList<TestFeedbackResponse>> ListForInnovationAsync(
|
|
string innovationId,
|
|
CancellationToken cancellationToken) => Task.FromResult<IReadOnlyList<TestFeedbackResponse>>([]);
|
|
}
|