Add minimal version of contract import
This commit is contained in:
@ -50,6 +50,8 @@ namespace Hcs.TestApp
|
||||
|
||||
//houseManagementScenario.ImportAccountData();
|
||||
|
||||
//houseManagementScenario.ImportContractData();
|
||||
|
||||
//houseManagementScenario.ImportLivingHouseUOData();
|
||||
|
||||
//houseManagementScenario.ImportNotificationData();
|
||||
|
||||
@ -80,6 +80,34 @@ namespace Hcs.TestApp.Scenario
|
||||
Console.WriteLine("Scenario execution " + (result ? "succeeded" : "failed"));
|
||||
}
|
||||
|
||||
internal void ImportContractData()
|
||||
{
|
||||
var signingDate = new DateTime(2017, 01, 01);
|
||||
var effectiveDate = new DateTime(2017, 01, 01);
|
||||
var planComptetionDate = new DateTime(2078, 12, 31);
|
||||
|
||||
var payload = new ImportContractDataPayload()
|
||||
{
|
||||
contractObjects = [new importContractRequestContractPlacingContractContractObject()
|
||||
{
|
||||
TransportGUID = Guid.NewGuid().ToString(),
|
||||
BaseMService = new BaseServiceType()
|
||||
{
|
||||
Item = true
|
||||
},
|
||||
FIASHouseGuid = "cf9c25b6-c7a4-40db-81f2-c97bfa46b903",
|
||||
StartDate = signingDate
|
||||
}],
|
||||
docNum = "11111111",
|
||||
signingDate = signingDate,
|
||||
effectiveDate = effectiveDate,
|
||||
planDateComptetion = planComptetionDate,
|
||||
contractBase = Registry58.Element8
|
||||
};
|
||||
var result = client.HouseManagement.ImportContractDataAsync(payload).Result;
|
||||
Console.WriteLine("Scenario execution " + (result != null ? "succeeded" : "failed"));
|
||||
}
|
||||
|
||||
internal void ImportLivingHouseUOData()
|
||||
{
|
||||
var payload = new ImportLivingHouseUODataPayload()
|
||||
|
||||
Reference in New Issue
Block a user