Skip to content

Commit 7f0055c

Browse files
committedMar 19, 2025
Updated test case
1 parent 5fff16a commit 7f0055c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/LCT.SW360PackageCreator.UTest/ComponentCreatorTest.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public async Task CreateComponentInSw360_ShouldCreateComponentsAndWriteFiles()
8989
mockSw360ProjectService.Setup(x => x.GetAlreadyLinkedReleasesByProjectId(It.IsAny<string>()))
9090
.ReturnsAsync(new List<ReleaseLinked>());
9191

92-
mockSw360CreatorService.Setup(x => x.LinkReleasesToProject(It.IsAny<List<ReleaseLinked>>(), It.IsAny<List<ReleaseLinked>>(), It.IsAny<string>()))
92+
mockSw360CreatorService.Setup(x => x.LinkPackagesToProject(It.IsAny<List<PackageLinked>>(), It.IsAny<string>()))
9393
.ReturnsAsync(true);
9494

9595
// Act
@@ -99,7 +99,7 @@ public async Task CreateComponentInSw360_ShouldCreateComponentsAndWriteFiles()
9999
mockFileOperations.Verify(x => x.WriteContentToOutputBomFile(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>()), Times.Once);
100100
mockCreatorHelper.Verify(x => x.WriteCreatorKpiDataToConsole(It.IsAny<CreatorKpiData>()), Times.Once);
101101
mockCreatorHelper.Verify(x => x.WriteSourceNotFoundListToConsole(It.IsAny<List<ComparisonBomData>>(), It.IsAny<CommonAppSettings>()), Times.Once);
102-
mockSw360CreatorService.Verify(x => x.LinkReleasesToProject(It.IsAny<List<ReleaseLinked>>(), It.IsAny<List<ReleaseLinked>>(), It.IsAny<string>()), Times.Once);
102+
mockSw360CreatorService.Verify(x => x.LinkPackagesToProject(It.IsAny<List<PackageLinked>>(), It.IsAny<string>()), Times.Once);
103103
}
104104

105105
[Test]

0 commit comments

Comments
 (0)