Closed prtandrup closed 2 years ago
Merging #1794 (34747c7) into main (edb5c13) will increase coverage by
50.73%
. The diff coverage isn/a
.
@@ Coverage Diff @@
## main #1794 +/- ##
===========================================
+ Coverage 34.51% 85.25% +50.73%
===========================================
Files 24 514 +490
Lines 478 9316 +8838
Branches 22 22
===========================================
+ Hits 165 7942 +7777
- Misses 298 1225 +927
- Partials 15 149 +134
Flag | Coverage Δ | |
---|---|---|
business | 87.99% <ø> (?) |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
...ce/GreenEnergyHub.Charges.Domain/Charges/Charge.cs | 96.17% <ø> (ø) |
|
...ges.ApplyDBMigrationsApp/Helpers/ScriptComparer.cs | 100.00% <0.00%> (ø) |
|
...st/ChargeLinks/CreateChargeLinkReceiverEndpoint.cs | 0.00% <0.00%> (ø) |
|
...parentInvoicingIsNotAllowedForFeeValidationRule.cs | 100.00% <0.00%> (ø) |
|
...st.Core/Authorization/ClientCredentialsSettings.cs | 0.00% <0.00%> (ø) |
|
...rgeLinksAcceptedEvents/ChargeLinksAcceptedEvent.cs | 100.00% <0.00%> (ø) |
|
...cture/Persistence/Repositories/ChargeRepository.cs | 74.41% <0.00%> (ø) |
|
...les/ChargeReceipt/ChargeReceiptCimXmlSerializer.cs | 95.23% <0.00%> (ø) |
|
...ailableChargeLinksData/AvailableChargeLinksData.cs | 100.00% <0.00%> (ø) |
|
...rges.Domain/MeteringPoints/MeteringPointFactory.cs | 100.00% <0.00%> (ø) |
|
... and 481 more |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
Kudos, SonarCloud Quality Gate passed!
Description
This PR removes this code section in
Charge.Update()
:Code cannot be reached due to validation rule VR.917, which guards any requests where
termination date
does not equaleffective date
. Without this rule it would have been possible to reach Charge.Update with an newChargePeriod.EndDateTime that was not equalEndDefault
;Right now, for an operation deemed
charge update
, the new charge period created will be set toEndDefault
aschargeInformationOperationDto.EndDateTime
is null:References
1231