Fixed voice work updater bug. Added integration tests for voice work search updates (Japanese).
All checks were successful
ci / build-test (push) Successful in 2m27s
ci / publish-image (push) Has been skipped

This commit is contained in:
2026-03-05 23:29:29 -05:00
parent 61f2e64972
commit 1d40013837
10 changed files with 171 additions and 5 deletions

View File

@@ -0,0 +1,32 @@
using JSMR.Application.Scanning.Contracts;
using JSMR.Domain.Enums;
using JSMR.Domain.ValueObjects;
using JSMR.Tests.Ingestion.Search;
namespace JSMR.Tests.Ingestion;
internal class IngestTestFactory
{
public static VoiceWorkIngest Create(SearchRelatedParameters searchRelatedParameters)
{
return new()
{
MakerId = searchRelatedParameters.MakerId,
MakerName = searchRelatedParameters.MakerName,
ProductId = searchRelatedParameters.ProductId,
Title = searchRelatedParameters.Title,
Description = searchRelatedParameters.Description,
Tags = searchRelatedParameters.Tags,
Creators = searchRelatedParameters.Creators,
WishlistCount = 100,
Downloads = 0,
HasTrial = false,
HasDLPlay = false,
AgeRating = AgeRating.AllAges,
HasImage = false,
SupportedLanguages = [SupportedLanguage.Japanese],
SalesDate = null,
ExpectedDate = new DateOnly(2025, 1, 1)
};
}
}