Add org registry export

This commit is contained in:
2025-08-25 20:40:10 +09:00
parent 039424eb9c
commit 0677cdb42e
30 changed files with 8064 additions and 0 deletions

View File

@ -79,6 +79,7 @@
<Compile Include="TestApp\Scenario\HouseManagementScenario.cs" />
<Compile Include="TestApp\Scenario\NsiCommonScenario.cs" />
<Compile Include="TestApp\Scenario\NsiScenario.cs" />
<Compile Include="TestApp\Scenario\OrgRegistryCommonScenario.cs" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.8">

View File

@ -39,6 +39,7 @@ namespace Hcs.TestApp
var houseManagementScenario = new HouseManagementScenario(client);
var nsiScenario = new NsiScenario(client);
var nsiCommonScenario = new NsiCommonScenario(client);
var orgRegistryCommonScenario = new OrgRegistryCommonScenario(client);
try
{
//houseManagementScenario.ExportAllSupplyResourceContractData();
@ -56,6 +57,8 @@ namespace Hcs.TestApp
//nsiScenario.ExportDataProviderNsiItem337();
//nsiCommonScenario.ExportNsiItem2();
//orgRegistryCommonScenario.ExportOrgRegistry();
}
catch (Exception e)
{

View File

@ -0,0 +1,16 @@
using Hcs.Client;
using System;
namespace Hcs.TestApp.Scenario
{
internal class OrgRegistryCommonScenario(UniClient client)
{
private readonly UniClient client = client;
internal void ExportOrgRegistry()
{
var result = client.OrgRegistryCommon.ExportOrgRegistryAsync("1031402044145", string.Empty).Result;
Console.WriteLine("Scenario execution " + (result != null ? "succeeded" : "failed"));
}
}
}