Add org registry export
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
||||
16
Hcs.TestApp/TestApp/Scenario/OrgRegistryCommonScenario.cs
Normal file
16
Hcs.TestApp/TestApp/Scenario/OrgRegistryCommonScenario.cs
Normal 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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user