Rework registry elements

This commit is contained in:
2025-09-08 19:48:57 +09:00
parent 80901cc1f9
commit 30235c3d7e
16 changed files with 158 additions and 178 deletions

View File

@ -27,7 +27,6 @@ namespace Hcs.TestApp.Scenario
},
DateValue = new DateTime(2025, 9, 25),
TransportGUID = Guid.NewGuid().ToString(),
// TODO: Переделать работу с НСИ
MunicipalResource = new nsiRef()
{
Code = Registry239.Element4.Code,
@ -39,7 +38,6 @@ namespace Hcs.TestApp.Scenario
{
DateValue = new DateTime(2025, 9, 25),
TransportGUID = Guid.NewGuid().ToString(),
// TODO: Переделать работу с НСИ
MunicipalResource = new nsiRef()
{
Code = Registry239.Element4.Code,

View File

@ -197,7 +197,11 @@ namespace Hcs.TestApp.Scenario
RemoteMeteringMode = false,
FirstVerificationDate = new DateTime(2021, 1, 1),
FirstVerificationDateSpecified = true,
VerificationInterval = Registry16.Element4,
VerificationInterval = new nsiRef()
{
Code = Registry16.Element4.Code,
GUID = Registry16.Element4.GUID
},
FactorySealDate = new DateTime(2021, 1, 1),
FactorySealDateSpecified = true,
TemperatureSensor = false,
@ -211,7 +215,11 @@ namespace Hcs.TestApp.Scenario
Item = true,
Items = [new MunicipalResourceNotElectricBaseType()
{
MunicipalResource = Registry239.Element4,
MunicipalResource = new nsiRef()
{
Code = Registry239.Element4.Code,
GUID = Registry239.Element4.GUID
},
MeteringValue = "0"
}]
}).Result;
@ -270,8 +278,16 @@ namespace Hcs.TestApp.Scenario
contractSubject = [new SupplyResourceContractTypeContractSubject()
{
TransportGUID = contractSubjectGuid,
ServiceType = Registry3.Element6,
MunicipalResource = Registry239.Element4,
ServiceType = new ContractSubjectTypeServiceType()
{
Code = Registry3.Element6.Code,
GUID = Registry3.Element6.GUID
},
MunicipalResource = new ContractSubjectTypeMunicipalResource()
{
Code = Registry239.Element4.Code,
GUID = Registry239.Element4.GUID
},
StartSupplyDate = effectiveDate,
EndSupplyDate = comptetionDate,
EndSupplyDateSpecified = true
@ -300,7 +316,11 @@ namespace Hcs.TestApp.Scenario
quality = [new SupplyResourceContractTypeQuality()
{
PairKey = contractSubjectGuid,
QualityIndicator = Registry276.Element4,
QualityIndicator = new nsiRef()
{
Code = Registry276.Element4.Code,
GUID = Registry276.Element4.GUID
},
IndicatorValue = new SupplyResourceContractTypeQualityIndicatorValue()
{
Items = [9.76m, 10m, "214"],
@ -309,7 +329,11 @@ namespace Hcs.TestApp.Scenario
}, new SupplyResourceContractTypeQuality()
{
PairKey = contractSubjectGuid,
QualityIndicator = Registry276.Element10,
QualityIndicator = new nsiRef()
{
Code = Registry276.Element10.Code,
GUID = Registry276.Element10.GUID
},
IndicatorValue = new SupplyResourceContractTypeQualityIndicatorValue()
{
Items = [0.05m, 0.3m, "298"],