Skip to content

Commit

Permalink
show GLN number for energy suppliers and grid access providers
Browse files Browse the repository at this point in the history
  • Loading branch information
vbelinschi committed Sep 20, 2024
1 parent 8c5a73b commit 11fba20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ private static string GenerateFilename(SettlementReportFileRequestDto fileReques
{
filename += $"_{actorInfo.ChargeOwnerId}";
}
else if (actorInfo.MarketRole == MarketRole.EnergySupplier && !string.IsNullOrWhiteSpace(fileRequest.RequestFilter.EnergySupplier))
{
filename += $"_{fileRequest.RequestFilter.EnergySupplier}";
}

if (!string.IsNullOrWhiteSpace(fileRequest.RequestFilter.EnergySupplier))
{
filename += $"_{fileRequest.RequestFilter.EnergySupplier}_DDQ";
filename += $"_DDQ";
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public async Task RequestFile_EnergySupplier_ShouldAppearInFilename()
settlementReportFileRepository.Object);

// Act
var resultGeneratedSettlementReportFile = await sut.RequestFileAsync(fileRequest, new SettlementReportRequestedByActor(MarketRole.DataHubAdministrator, null));
var resultGeneratedSettlementReportFile = await sut.RequestFileAsync(fileRequest, new SettlementReportRequestedByActor(MarketRole.EnergySupplier, null));
var resultedFileName = resultGeneratedSettlementReportFile.FileInfo.FileName;

// Assert
Expand Down Expand Up @@ -112,7 +112,7 @@ public async Task RequestFile_NoEnergySupplier_ShouldNotAppearInFilename(string?
settlementReportFileRepository.Object);

// Act
var resultGeneratedSettlementReportFile = await sut.RequestFileAsync(fileRequest, new SettlementReportRequestedByActor(MarketRole.SystemOperator, null));
var resultGeneratedSettlementReportFile = await sut.RequestFileAsync(fileRequest, new SettlementReportRequestedByActor(MarketRole.EnergySupplier, null));
var resultedFileName = resultGeneratedSettlementReportFile.FileInfo.FileName;

// Assert
Expand Down

0 comments on commit 11fba20

Please sign in to comment.