25 lines
840 B
C#
25 lines
840 B
C#
using Microsoft.Extensions.Hosting;
|
|
using OwnerNumberMigration.Migrations;
|
|
using OwnerNumberMigration;
|
|
using OwnerNumberMigration.ValueParsing;
|
|
using LCU.API.Internal.DocumentLib.Containers;
|
|
|
|
namespace OwnerNumberMigrationTest.Migrations;
|
|
|
|
public class PersonNumberMigrationTest : AttributeMigrationTaskTest<string[]>
|
|
{
|
|
protected override string SourceAttribute => "PersonNumber";
|
|
|
|
protected override string DestinationAttribute => nameof(DocumentInformation.PersonNumbers);
|
|
|
|
protected override IHostedService MigrationTaskFactory
|
|
(
|
|
AttributeMigrationFactory<string[]> factory,
|
|
IParsingStrategyFactory strategyFactory,
|
|
IMigrationManager manager
|
|
) => new PersonNumberMigration(factory, strategyFactory, manager);
|
|
|
|
public PersonNumberMigrationTest() : base(Array.Empty<string>)
|
|
{
|
|
}
|
|
} |