Index: vhUnitTest/APPS/Halux/Planning/impl/BatchStarter/StartBatch/Test.cls.xml
===================================================================
diff -u -r50955 -r57876
--- vhUnitTest/APPS/Halux/Planning/impl/BatchStarter/StartBatch/Test.cls.xml (.../Test.cls.xml) (revision 50955)
+++ vhUnitTest/APPS/Halux/Planning/impl/BatchStarter/StartBatch/Test.cls.xml (.../Test.cls.xml) (revision 57876)
@@ -33,6 +33,11 @@
1
+
+APPS.Halux.AAP.DnaCodeService
+1
+
+
aTestName:%String
@@ -64,11 +70,14 @@
Do SequentieServiceMock.VerwachtMethodCall("GenereerSequentie", BatchStub)
Set ..SequentieService = SequentieServiceMock
+ Do ..DnaCodeServiceMock.VerwachtMethodCall("MaakDnaCodesVoorBatch", BatchStub).DanDoeNiks()
+
Do ..InitImplementation()
Do ..BatchStarterImpl.StartBatch(BatchStub)
Do $$$AssertEquals(BatchBewaarderSpy.BewaarBatchAantalKeerOpgeroepen,2)
Do SequentieServiceMock.Verifieer()
+ Do ..DnaCodeServiceMock.Verifieer()
Do $$$AssertEquals(EventRaiserSpy.IsEventGeraised("BatchGeslotenEvent"),"")
]]>
@@ -108,14 +117,16 @@
Do BatchSequentieVerwijderaarStub.IndienMethodCall("VerwijderBatchSequentie",BatchStub)
Set ..BatchSequentieVerwijderaar = BatchSequentieVerwijderaarStub
+ Do ..DnaCodeServiceMock.IndienMethodCall("VerwijderDnaCodesVoorBatch", BatchStub).DanDoeNiks()
+
Do ..InitImplementation()
Do ..BatchStarterImpl.StartBatch(BatchStub)
]]>
1
-
Index: APPS/Halux/Planning/impl/BatchStarter.cls.xml
===================================================================
diff -u -r50955 -r57876
--- APPS/Halux/Planning/impl/BatchStarter.cls.xml (.../BatchStarter.cls.xml) (revision 50955)
+++ APPS/Halux/Planning/impl/BatchStarter.cls.xml (.../BatchStarter.cls.xml) (revision 57876)
@@ -23,17 +23,23 @@
1
+
+APPS.Halux.AAP.DnaCodeService
+1
+
+
-BatchBewaarder:APPS.Halux.Planning.BatchBewaarder,BatchSequentieService:APPS.Halux.common.impl.SequentieService,BatchSequentieVerwijderaar:APPS.Halux.Planning.impl.BatchSequentieVerwijderaar,Logger:vhLib.Logger
+BatchBewaarder:APPS.Halux.Planning.BatchBewaarder,BatchSequentieService:APPS.Halux.common.impl.SequentieService,BatchSequentieVerwijderaar:APPS.Halux.Planning.impl.BatchSequentieVerwijderaar,Logger:vhLib.Logger,DnaCodeService:APPS.Halux.AAP.DnaCodeService
1
1
%Status
1
@@ -59,6 +65,7 @@
Do Batch.ZetStatus(##class(APPS.Halux.common.enu.BatchStatus).BezigMetStarten())
Do ..BatchBewaarder.BewaarBatch(Batch)
Do ..BatchSequentieService.GenereerSequentie(Batch)
+ Do ..DnaCodeService.MaakDnaCodesVoorBatch(Batch)
Do Batch.ZetStatus(##class(APPS.Halux.common.enu.BatchStatus).Gestart())
Do ..BatchBewaarder.BewaarBatch(Batch)
Do ##class(APPS.Halux.common.event.BatchEventRaiser).RaiseBatchGeslotenEvent(Batch.GeefID())
@@ -67,7 +74,8 @@
#dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch()
Do Batch.ZetStatus(##class(APPS.Halux.common.enu.BatchStatus).StartenGefaald())
Do ..BatchBewaarder.BewaarBatch(Batch)
- Do ..BatchSequentieVerwijderaar.VerwijderBatchSequentie(Batch)
+ Do ..BatchSequentieVerwijderaar.VerwijderBatchSequentie(Batch)
+ Do ..DnaCodeService.VerwijderDnaCodesVoorBatch(Batch)
Do ..Logger.Error("StartBatch", "Starten van batch ("_Batch.GeefID()_") is mislukt."_$$$CRLF_$$$CRLF_"Exception:"_$$$CRLF_Exception.ToString())
Do ##class(TECH.ExceptionHandler).Throw(Exception)
}