Index: vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/HoofdDataGenerator/DataVoorToeleveringGenerator/GenereerData/Test.cls.xml =================================================================== diff -u -r71899 -r71901 --- vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/HoofdDataGenerator/DataVoorToeleveringGenerator/GenereerData/Test.cls.xml (.../Test.cls.xml) (revision 71899) +++ vhUnitTest/APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/HoofdDataGenerator/DataVoorToeleveringGenerator/GenereerData/Test.cls.xml (.../Test.cls.xml) (revision 71901) @@ -29,10 +29,10 @@ Set BatchPitchExported = ##class(APPS.Halux.Planning.Pitching.BatchPitchExported).%New() Set BatchPitchExported.Volgnummer = BatchPitchExportedVolgnummer Set BatchPitchExported.LijnNummer = LijnNummer - #dim BatchPitchExportedIterator As TECH.Iterator = ##class(TECH.ListUtils).CreateIteratorOfObjects(BatchPitchExported) + #dim BatchPitchExportedLijst As %ListOfObjects = ##class(TECH.ListUtils).CreateListOfObjects(BatchPitchExported) - Set BatchPitchExportedRepositoryMock = ##class(vhTest.Mock.APPS.Halux.Planning.Pitching.impl.BatchPitchExportedRepository).%New() - Do BatchPitchExportedRepositoryMock.VerwachtMethodCall("ZoekViaBatchId", BatchId).ExactAantalKeer(2).DanReturn(BatchPitchExportedIterator) + Set BatchPitchExportedServiceMock = ##class(vhTest.Mock.APPS.Halux.Planning.Pitching.impl.BatchPitchExportedService).%New() + Do BatchPitchExportedServiceMock.VerwachtMethodCall("ZoekViaBatchId", BatchId).ExactAantalKeer(2).DanReturn(BatchPitchExportedLijst) #dim OrderMock As vhTest.Mock.DOM.VKP.Order = ##class(vhTest.Mock.DOM.VKP.Order).%New() Do OrderMock.VerwachtMethodCall("GeefAxSalesId").ExactAantalKeer(1).DanDoeNiks() @@ -51,7 +51,7 @@ Set LegacyPartijApiMock = ##class(vhTest.Mock.DOM.PARTIJ.LegacyPartijAPI).%New() Do LegacyPartijApiMock.VerwachtMethodCall("GeefKlantNummerVoorPartijID", "K||1234").ExactAantalKeer(1).DanReturn(KlantId) - Set DataVoorToeleveringGenerator = ##class(APPS.Halux.PPS.Document.impl.common.BatchNaarObjective.HoofdDataGenerator.DataVoorToeleveringGenerator).%New(BatchPitchExportedRepositoryMock, OrderApiMock, PartijAPIMock, LegacyPartijApiMock) + Set DataVoorToeleveringGenerator = ##class(APPS.Halux.PPS.Document.impl.common.BatchNaarObjective.HoofdDataGenerator.DataVoorToeleveringGenerator).%New(BatchPitchExportedServiceMock, OrderApiMock, PartijAPIMock, LegacyPartijApiMock) #dim BatchNaarObjectiveData As APPS.Halux.PPS.Document.impl.common.BatchNaarObjective.dto.BatchNaarObjectiveData = DataVoorToeleveringGenerator.GenereerData(BatchMock, ToeleveringMock, SequentieNummerToelevering) Do $$$AssertEquals(BatchNaarObjectiveData.DueBefore, VerwachtTijdstipGeformatteerd) @@ -68,67 +68,68 @@ Do OrderMock.Verifieer() Do PartijAPIMock.Verifieer() Do LegacyPartijApiMock.Verifieer() - Do BatchPitchExportedRepositoryMock.Verifieer() + Do BatchPitchExportedServiceMock.Verifieer() ]]>