Index: APPS/EC/Verkoop/impl/OfferteVoorBestellingValidator.cls.xml
===================================================================
diff -u -r46643 -r47660
--- APPS/EC/Verkoop/impl/OfferteVoorBestellingValidator.cls.xml (.../OfferteVoorBestellingValidator.cls.xml) (revision 46643)
+++ APPS/EC/Verkoop/impl/OfferteVoorBestellingValidator.cls.xml (.../OfferteVoorBestellingValidator.cls.xml) (revision 47660)
@@ -33,14 +33,21 @@
1
+
+APPS.EC.impl.ConfiguratorService.CheckoutTypeBepaler
+1
+
+
-WinkelkarService:APPS.EC.Winkelkar.WinkelkarService
+WinkelkarService:APPS.EC.Winkelkar.WinkelkarService,CheckoutTypeBepaler:APPS.EC.impl.ConfiguratorService.CheckoutTypeBepaler
1
1
%Status
1
@@ -101,7 +108,7 @@
VanHoeckePersonality:DOM.common.VanHoeckePersonality
%Boolean
-
Index: vhUnitTest/APPS/EC/Verkoop/impl/Externe/VerkoopService/OfferteVoorBestellingValidator/TestVH.cls.xml
===================================================================
diff -u -r45353 -r47660
--- vhUnitTest/APPS/EC/Verkoop/impl/Externe/VerkoopService/OfferteVoorBestellingValidator/TestVH.cls.xml (.../TestVH.cls.xml) (revision 45353)
+++ vhUnitTest/APPS/EC/Verkoop/impl/Externe/VerkoopService/OfferteVoorBestellingValidator/TestVH.cls.xml (.../TestVH.cls.xml) (revision 47660)
@@ -15,6 +15,10 @@
APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator
+
+APPS.EC.impl.ConfiguratorService.CheckoutTypeBepaler
+
+
1234
@@ -35,7 +39,7 @@
Do ..OfferteStub.IndienMethodCall("GeefWensLeverDatum").DanReturn("ASAP")
Do ..OfferteStub.IndienMethodCall("IsVhisie4").DanReturn($$$True)
- Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub)
+ Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub, ..CheckoutTypeBepalerStub)
Do $$$AssertTrue(..OfferteVoorBestellingValidator.IsGeldig(..OfferteStub,..#KlantID,..#PersonalityID))
]]>
@@ -48,7 +52,7 @@
Do ..Init(LeverDatum,..#PersonalityID)
Do ..OfferteStub.IndienMethodCall("IsVhisie4").DanReturn($$$False)
- Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub)
+ Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub, ..CheckoutTypeBepalerStub)
Do $$$AssertTrue(..OfferteVoorBestellingValidator.IsGeldig(..OfferteStub,..#KlantID,..#PersonalityID))
]]>
@@ -61,7 +65,7 @@
Do ..Init(LeverDatum,..#PersonalityID,,$$$True,$$$True)
Do ..OfferteStub.IndienMethodCall("IsVhisie4").DanReturn($$$False)
- Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub)
+ Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub, ..CheckoutTypeBepalerStub)
Do $$$AssertFalse(..OfferteVoorBestellingValidator.IsGeldig(..OfferteStub,..#KlantID,..#PersonalityID))
]]>
@@ -77,7 +81,7 @@
Do ..OfferteStub.IndienMethodCall("GeefWensLeverDatum").DanReturn("")
Do ..OfferteStub.IndienMethodCall("IsVhisie4").DanReturn($$$True)
- Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub)
+ Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub, ..CheckoutTypeBepalerStub)
Do $$$AssertFalse(..OfferteVoorBestellingValidator.IsGeldig(..OfferteStub,..#KlantID,..#PersonalityID))
]]>
@@ -93,7 +97,7 @@
Do ..OfferteStub.IndienMethodCall("GeefWensLeverDatum").DanReturn("ASAP")
Do ..OfferteStub.IndienMethodCall("IsVhisie4").DanReturn($$$False)
- Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub)
+ Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub, ..CheckoutTypeBepalerStub)
Do $$$AssertFalse(..OfferteVoorBestellingValidator.IsGeldig(..OfferteStub,..#KlantID,..#PersonalityID))
]]>
@@ -107,7 +111,7 @@
Do ..Init(LeverDatum,..#PersonalityID,,$$$True,ErZijnMaatwerklijnen)
Do ..OfferteStub.IndienMethodCall("IsVhisie4").DanReturn($$$False)
- Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub)
+ Set ..OfferteVoorBestellingValidator = ##class(APPS.EC.Verkoop.impl.OfferteVoorBestellingValidator).%New(..WinkelkarServiceStub, ..CheckoutTypeBepalerStub)
Do $$$AssertTrue(..OfferteVoorBestellingValidator.IsGeldig(..OfferteStub,..#KlantID,..#PersonalityID))
]]>
@@ -127,6 +131,10 @@
Do ..OfferteStub.IndienMethodCall("ZijnPrijzenVervallen").DanReturn(ZijnPrijzenVervallen)
Do ..OfferteStub.IndienMethodCall("GeefLeverDatum").DanReturn(LeverDatum)
+ Set ..CheckoutTypeBepalerStub = ##class(vhTest.Mock.APPS.EC.impl.ConfiguratorService.CheckoutTypeBepaler).%New()
+ Do ..CheckoutTypeBepalerStub.IndienMethodCall("Bepaal",$$$ElkeWaarde, $$$ElkeWaarde).DanReturn(##class(APPS.EC.Unishop.enu.CheckoutType).Standaard())
+
+
#dim MaatwerkLijnen As %ListOfObjects = ##class(%ListOfObjects).%New()
Do:HeeftMaatwerklijnen MaatwerkLijnen.Insert(##class(DOM.EC.Winkelkar.MaatwerkLijn).%New())