Updated integration testing for English and Japanese. Fixed minor voice work updater issue. Updated to XUnitV3.
This commit is contained in:
@@ -1,49 +1,22 @@
|
||||
using JSMR.Application.Scanning.Contracts;
|
||||
using JSMR.Application.Common;
|
||||
using JSMR.Application.Scanning.Contracts;
|
||||
using JSMR.Application.Scanning.Ports;
|
||||
using JSMR.Domain.Entities;
|
||||
using JSMR.Infrastructure.Common.SupportedLanguages;
|
||||
using JSMR.Infrastructure.Common.Time;
|
||||
using JSMR.Infrastructure.Data;
|
||||
using JSMR.Infrastructure.Ingestion;
|
||||
using JSMR.Tests.Fixtures;
|
||||
using JSMR.Tests.Ingestion.Japanese;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using NSubstitute;
|
||||
using Shouldly;
|
||||
|
||||
namespace JSMR.Tests.Ingestion;
|
||||
|
||||
//public class VoiceWorkIngestionTests(VoiceWorkIngestionFixture fixture)
|
||||
//{
|
||||
// [Fact]
|
||||
// public async Task Simple_Upsert()
|
||||
// {
|
||||
// await using AppDbContext context = fixture.CreateDbContext();
|
||||
|
||||
// VoiceWorkIngest[] ingests =
|
||||
// [
|
||||
// // TODO
|
||||
// //new()
|
||||
// //{
|
||||
// // MakerId = "RG00001",
|
||||
// // MakerName = "Good Dreams",
|
||||
// // ProductId = "A Newly Announced Work",
|
||||
// // Title = "",
|
||||
// // Description = ""
|
||||
// //},
|
||||
// //new()
|
||||
// //{
|
||||
// // MakerId = "RG00002",
|
||||
// // MakerName = "Sweet Dreams",
|
||||
// // ProductId = "",
|
||||
// // Title = "",
|
||||
// // Description = ""
|
||||
// //}
|
||||
// ];
|
||||
|
||||
// IClock clock = Substitute.For<IClock>();
|
||||
// clock.UtcNow.Returns(new DateTimeOffset(2025, 1, 3, 0, 0, 0, 0, TimeSpan.FromSeconds(0)));
|
||||
public class VoiceWorkIngestionTests(MariaDbContainerFixture container) : IngestionTestsBase(container)
|
||||
{
|
||||
|
||||
// TokyoTimeProvider timeProvider = new(clock);
|
||||
|
||||
// VoiceWorkUpdater updater = new(context, timeProvider);
|
||||
// await updater.UpsertAsync(ingests, CancellationToken.None);
|
||||
|
||||
// // TODO
|
||||
// //context.VoiceWorks.Count().ShouldBe(2);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
Reference in New Issue
Block a user