Closed prtandrup closed 3 years ago
@Mech0z, it's on line 38 of source/GreenEnergyHub.Charges/source/GreenEnergyHub.Charges.Domain/AvailableChargeLinksData/AvailableChargeLinksDataFactory.cs
, where we pass sender ID instead of charge owner.
According to team agreement we must remember to add tests.
Verified as fixed in T:
<?xml version="1.0" encoding="utf-8"?>
Current Behavior
Incorrect ChargeOwner value sent to Grid Access Provider in NotifyBillingMasterData (RSM-031) It seems like the inbound ChargeLinkRequest's Sender Id is used as ChargeOwner in the outbound message.
Expected behavior
The ChargeOwner in the outbound NotifyBillingMasterData (RSM-031) is the actual charge owner registered (in storage)
How to reproduce
Do the following via Postman: 1) Submit a new Charge Link for a tax tariff (as DDQ with a Sender ID that different from the ChargeOwner) 2) Do a Peek POST request with no body but with params
marketoperator
:8100000000030
+bundleid
:use a guid
3) Observe that the following xml element holds the wrong owner: