Index: vhUnitTest/AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter/Convert/Test.cls.xml =================================================================== diff -u -r44566 -r44567 --- vhUnitTest/AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter/Convert/Test.cls.xml (.../Test.cls.xml) (revision 44566) +++ vhUnitTest/AXimpl/Dynamics/InventoryOut/Converter/InventoryOutConverter/Convert/Test.cls.xml (.../Test.cls.xml) (revision 44567) @@ -84,16 +84,16 @@ Set Request = ##class(AXimpl.Request).%New("InventoryOut/Update", IdLijst, $$$DummyString) #dim KundeStamLijst As %List - Set KundeStamLijst = $ListBuild("10","11","12") + Set KundeStamLijst = $ListBuild("10","101","102") Set SoprProductConverterStub = ##class(vhTest.Mock.AX.Uitgaand.PM.impl.Convertor.Sopr.ProductConvertor).%New() Do SoprProductConverterStub.IndienMethodCall("IsSOPRInAX","10").DanReturn($$$True) Do SoprProductConverterStub.IndienMethodCall("GeefSOPRIterator","10").DanReturn(##class(TECH.ListbuildIterator).%New(KundeStamLijst)) Set AxInventSyncCreatorMock = ##class(vhTest.Mock.AXimpl.Dynamics.InventoryOut.Converter.AxInventSyncCreator).%New() Do AxInventSyncCreatorMock.VerwachtMethodCall("MaakInventSync","10","10").DanDoeNiks().ExactAantalKeer(0) - Do AxInventSyncCreatorMock.VerwachtMethodCall("MaakInventSync","11","10").DanDoeNiks().ExactAantalKeer(1) - Do AxInventSyncCreatorMock.VerwachtMethodCall("MaakInventSync","12","10").DanDoeNiks().ExactAantalKeer(1) + Do AxInventSyncCreatorMock.VerwachtMethodCall("MaakInventSync","101","10").DanDoeNiks().ExactAantalKeer(1) + Do AxInventSyncCreatorMock.VerwachtMethodCall("MaakInventSync","102","10").DanDoeNiks().ExactAantalKeer(1) Set ..SoprProductConverter = SoprProductConverterStub Set ..AxInventSyncCreator = AxInventSyncCreatorMock @@ -106,6 +106,48 @@ ]]> + + +I.g.v. een Sopr mag het principieel product (IsSOPRInAX) niet doorgestuurd worden, enkel de andere varianten! + + + 1 AXimpl.Dynamics.InventoryOut.Converter.InventoryOutConverter