Index: vhTest/Mock/WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder.cls.xml
===================================================================
diff -u -r45483 -r45491
--- vhTest/Mock/WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder.cls.xml (.../ContactGegevensRegistreerder.cls.xml) (revision 45483)
+++ vhTest/Mock/WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder.cls.xml (.../ContactGegevensRegistreerder.cls.xml) (revision 45491)
@@ -7,6 +7,20 @@
1
WSimpl.Vhisie4.Auth.HandelAuthenticator.ContactGegevensRegistreerder,Tools.Mock.MockClassBase
right
+
+
+UnishopVerwerker:APPS.EC.enu.UniShopVerwerker,KlantId:%String,Klantnaam:%String,GebruikerId:%String,Email:%String="ict_development@vanhoecke.be",Taal:WSimpl.Unishop.enu.Taal="N",Korting:%String="0"
+%String
+
+
+
+
+RegistreerContactGegevensRequest:WS.Vhisie4.Auth.RegistreerContactGegevensRequest
+WS.Vhisie4.Auth.RegistreerContactGegevensResponse
+
+
Index: vhUnitTest/WSimpl/Vhisie4/Auth/HandelAuthenticator/Test.cls.xml
===================================================================
diff -u -r45481 -r45491
--- vhUnitTest/WSimpl/Vhisie4/Auth/HandelAuthenticator/Test.cls.xml (.../Test.cls.xml) (revision 45481)
+++ vhUnitTest/WSimpl/Vhisie4/Auth/HandelAuthenticator/Test.cls.xml (.../Test.cls.xml) (revision 45491)
@@ -10,12 +10,26 @@
Set DecrypteerderMock = ##class(vhTest.Mock.WSimpl.Vhisie4.Auth.HandelAuthenticator.Decrypteerder).%New()
Do DecrypteerderMock.VerwachtMethodCall("Decrypteer",Request).ExactAantalKeer(1)
- Set Authenticator = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator).%New(,,,,,,,,DecrypteerderMock)
+ Set Authenticator = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator).%New(DecrypteerderMock)
Do Authenticator.Decrypteer(Request)
Do DecrypteerderMock.Verifieer()
]]>
+
+
+
+
Index: WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder.cls.xml
===================================================================
diff -u -r45483 -r45491
--- WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder.cls.xml (.../ContactGegevensRegistreerder.cls.xml) (revision 45483)
+++ WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder.cls.xml (.../ContactGegevensRegistreerder.cls.xml) (revision 45491)
@@ -2,6 +2,162 @@
TECH.Mockable
+
+
+WSimpl.Unishop.Login.ParameterBepaler
+1
+
+
+
+DOM.common.impl.HandelPersonalityRepository
+1
+
+
+
+DOM.VKP.impl.HandelKlantDataRepository
+1
+
+
+
+APPS.EC.WebshopSessionService
+1
+
+
+
+APPS.VKP.KlantDataBewaarder
+1
+
+
+
+WSimpl.Vhisie4.SettingsManager
+1
+
+
+
+WSimpl.Unishop.Login.KortingBewaarder
+1
+
+
+
+APPS.EC.KlantSessieDataBepaler
+1
+
+
+
+LoginParameterBepaler:WSimpl.Unishop.Login.ParameterBepaler,HandelKlantDataRepository:DOM.VKP.impl.HandelKlantDataRepository,HandelPersonalityRepository:DOM.common.impl.HandelPersonalityRepository,WebshopSessionService:APPS.EC.WebshopSessionService,KlantDataBewaarder:APPS.VKP.KlantDataBewaarder,SettingsManager:WSimpl.Vhisie4.SettingsManager,LoginKortingBewaarder:WSimpl.Unishop.Login.KortingBewaarder,KlantSessieDataBepaler:APPS.EC.KlantSessieDataBepaler
+1
+1
+%Status
+1
+
+
+
+
+RegistreerContactGegevensRequest:WS.Vhisie4.Auth.RegistreerContactGegevensRequest
+WS.Vhisie4.Auth.RegistreerContactGegevensResponse
+
+
+
+
+UnishopVerwerker:APPS.EC.enu.UniShopVerwerker,KlantId:%String,Klantnaam:%String,GebruikerId:%String,Email:%String="ict_development@vanhoecke.be",Taal:WSimpl.Unishop.enu.Taal="N",Korting:%String="0"
+%String
+1
+
+
+
+
+KlantId:DOM.VKP.VanHoeckeKlantID,RegistreerContactGegevensRequest:WS.Vhisie4.Auth.RegistreerContactGegevensRequest
+1
+DOM.VKP.impl.HandelKlantData
+
+
+
+
+Personality:DOM.common.Personality,KlantData:DOM.common.dto.HandelKlantData
+1
+
+
Index: WSimpl/Vhisie4/Auth/HandelAuthenticator.cls.xml
===================================================================
diff -u -r45481 -r45491
--- WSimpl/Vhisie4/Auth/HandelAuthenticator.cls.xml (.../HandelAuthenticator.cls.xml) (revision 45481)
+++ WSimpl/Vhisie4/Auth/HandelAuthenticator.cls.xml (.../HandelAuthenticator.cls.xml) (revision 45491)
@@ -3,67 +3,25 @@
TECH.RegisteredObject
-
-WSimpl.Unishop.Login.ParameterBepaler
+
+WSimpl.Vhisie4.Auth.HandelAuthenticator.Decrypteerder
1
-
-DOM.common.impl.HandelPersonalityRepository
+
+WSimpl.Vhisie4.Auth.HandelAuthenticator.ContactGegevensRegistreerder
1
-
-DOM.VKP.impl.HandelKlantDataRepository
-1
-
-
-
-APPS.EC.WebshopSessionService
-1
-
-
-
-APPS.VKP.KlantDataBewaarder
-1
-
-
-
-WSimpl.Vhisie4.SettingsManager
-1
-
-
-
-WSimpl.Unishop.Login.KortingBewaarder
-1
-
-
-
-APPS.EC.KlantSessieDataBepaler
-1
-
-
-
-WSimpl.Vhisie4.Auth.HandelAuthenticator.Decrypteerder
-1
-
-
-LoginParameterBepaler:WSimpl.Unishop.Login.ParameterBepaler,HandelKlantDataRepository:DOM.VKP.impl.HandelKlantDataRepository,HandelPersonalityRepository:DOM.common.impl.HandelPersonalityRepository,WebshopSessionService:APPS.EC.WebshopSessionService,KlantDataBewaarder:APPS.VKP.KlantDataBewaarder,SettingsManager:WSimpl.Vhisie4.SettingsManager,LoginKortingBewaarder:WSimpl.Unishop.Login.KortingBewaarder,KlantSessieDataBepaler:APPS.EC.KlantSessieDataBepaler,Decrypteerder:WSimpl.Vhisie4.Auth.HandelAuthenticator.Decrypteerder
+Decrypteerder:WSimpl.Vhisie4.Auth.HandelAuthenticator.Decrypteerder,Registreerder:WSimpl.Vhisie4.Auth.HandelAuthenticator.ContactGegevensRegistreerder
1
1
%Status
1
@@ -79,99 +37,9 @@
RegistreerContactGegevensRequest:WS.Vhisie4.Auth.RegistreerContactGegevensRequest
WS.Vhisie4.Auth.RegistreerContactGegevensResponse
-
-
-
-UnishopVerwerker:APPS.EC.enu.UniShopVerwerker,KlantId:%String,Klantnaam:%String,GebruikerId:%String,Email:%String="ict_development@vanhoecke.be",Taal:WSimpl.Unishop.enu.Taal="N",Korting:%String="0"
-%String
-1
-
-
-
-
-KlantId:DOM.VKP.VanHoeckeKlantID,RegistreerContactGegevensRequest:WS.Vhisie4.Auth.RegistreerContactGegevensRequest
-1
-DOM.VKP.impl.HandelKlantData
-
-
-
-
-Personality:DOM.common.Personality,KlantData:DOM.common.dto.HandelKlantData
-1
-
-
Index: vhTest/Fake/WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder.cls.xml
===================================================================
diff -u -r45483 -r45491
--- vhTest/Fake/WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder.cls.xml (.../ContactGegevensRegistreerder.cls.xml) (revision 45483)
+++ vhTest/Fake/WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder.cls.xml (.../ContactGegevensRegistreerder.cls.xml) (revision 45491)
@@ -6,6 +6,20 @@
Een hercompilatie van de basis interface - met een correct werkende studiohook ( v2.20 ++ ) - zorgt ervoor dat deze klasse aangepast wordt
1
WSimpl.Vhisie4.Auth.HandelAuthenticator.ContactGegevensRegistreerder
+
+
+UnishopVerwerker:APPS.EC.enu.UniShopVerwerker,KlantId:%String,Klantnaam:%String,GebruikerId:%String,Email:%String="ict_development@vanhoecke.be",Taal:WSimpl.Unishop.enu.Taal="N",Korting:%String="0"
+%String
+
+
+
+
+RegistreerContactGegevensRequest:WS.Vhisie4.Auth.RegistreerContactGegevensRequest
+WS.Vhisie4.Auth.RegistreerContactGegevensResponse
+
+
Index: vhUnitTest/WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder/Registreer/Test.cls.xml
===================================================================
diff -u -r45482 -r45491
--- vhUnitTest/WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder/Registreer/Test.cls.xml (.../Test.cls.xml) (revision 45482)
+++ vhUnitTest/WSimpl/Vhisie4/Auth/HandelAuthenticator/ContactGegevensRegistreerder/Registreer/Test.cls.xml (.../Test.cls.xml) (revision 45491)
@@ -43,8 +43,8 @@
Set KortingBewaarderMock = ##class(vhTest.Mock.WSimpl.Unishop.Login.KortingBewaarder).%New()
Do KortingBewaarderMock.VerwachtMethodCall("BewaarMeegegevenKorting",RegistreerContactGegevensRequestStub.Ref,DataOpt).ExactAantalKeer(1)
- Set Authenticator = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator).%New(,HandelKlantDataRepositoryMock,HandelPersonalityRepositoryStub,,KlantDataBewaarderStub,SettingsManagerStub,KortingBewaarderMock,KlantSessieDataBepalerStub)
- #dim Response As WS.Vhisie4.Auth.RegistreerContactGegevensResponse = Authenticator.RegistreerContactGegevens(RegistreerContactGegevensRequestStub)
+ Set Registreerder = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator.ContactGegevensRegistreerder).%New(,HandelKlantDataRepositoryMock,HandelPersonalityRepositoryStub,,KlantDataBewaarderStub,SettingsManagerStub,KortingBewaarderMock,KlantSessieDataBepalerStub)
+ #dim Response As WS.Vhisie4.Auth.RegistreerContactGegevensResponse = Registreerder.Registreer(RegistreerContactGegevensRequestStub)
Do HandelKlantDataRepositoryMock.Verifieer()
Do KortingBewaarderMock.Verifieer()
@@ -60,9 +60,9 @@
#dim Substrings = ##class(TECH.ListUtils).CreateListOfDataTypes("Ref is verplicht")
Do ..ZetVerwachteExceptie(##class(Tools.Test.VerwachteExceptie).%New(##class(TECH.Exceptions.InvalidInputException).%ClassName(1),Substrings))
- Set Authenticator = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator).%New()
+ Set Registreerder = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator.ContactGegevensRegistreerder).%New()
- Do Authenticator.RegistreerContactGegevens(RegistreerContactGegevensRequestStub)
+ Do Registreerder.Registreer(RegistreerContactGegevensRequestStub)
]]>
@@ -74,9 +74,9 @@
#dim Substrings = ##class(TECH.ListUtils).CreateListOfDataTypes("Naam is verplicht")
Do ..ZetVerwachteExceptie(##class(Tools.Test.VerwachteExceptie).%New(##class(TECH.Exceptions.InvalidInputException).%ClassName(1),Substrings))
- Set Authenticator = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator).%New()
+ Set Registreerder = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator.ContactGegevensRegistreerder).%New()
- Do Authenticator.RegistreerContactGegevens(RegistreerContactGegevensRequestStub)
+ Do Registreerder.Registreer(RegistreerContactGegevensRequestStub)
]]>
@@ -88,9 +88,9 @@
#dim Substrings = ##class(TECH.ListUtils).CreateListOfDataTypes("EmailAdres is verplicht")
Do ..ZetVerwachteExceptie(##class(Tools.Test.VerwachteExceptie).%New(##class(TECH.Exceptions.InvalidInputException).%ClassName(1),Substrings))
- Set Authenticator = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator).%New()
+ Set Registreerder = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator.ContactGegevensRegistreerder).%New()
- Do Authenticator.RegistreerContactGegevens(RegistreerContactGegevensRequestStub)
+ Do Registreerder.Registreer(RegistreerContactGegevensRequestStub)
]]>
@@ -122,8 +122,8 @@
Do SettingsManagerStub.IndienMethodCall("GeefVhisie4Prefix",HandelPersonalityStub).DanReturn("daro_")
Do SettingsManagerStub.IndienMethodCall("GeefWebshopVerwerker",HandelPersonalityStub).DanReturn("DARO")
- Set Authenticator = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator).%New(,HandelKlantDataRepositoryMock,HandelPersonalityRepositoryStub,WebshopSessionServiceStub,KlantDataBewaarderStub,SettingsManagerStub)
- #dim Response As WS.Vhisie4.Auth.RegistreerContactGegevensResponse = Authenticator.RegistreerContactGegevens(RegistreerContactGegevensRequestStub)
+ Set Registreerder = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator.ContactGegevensRegistreerder).%New(,HandelKlantDataRepositoryMock,HandelPersonalityRepositoryStub,WebshopSessionServiceStub,KlantDataBewaarderStub,SettingsManagerStub)
+ #dim Response As WS.Vhisie4.Auth.RegistreerContactGegevensResponse = Registreerder.Registreer(RegistreerContactGegevensRequestStub)
Do HandelKlantDataRepositoryMock.Verifieer()
Do HandelPersonalityRepositoryStub.Verifieer()
@@ -138,8 +138,8 @@
#dim Substrings = ##class(TECH.ListUtils).CreateListOfDataTypes("Kon object van type DOM.VKP.impl.HandelKlantData niet openen met id 'daro_UT_Ongeldig'")
Do ..ZetVerwachteExceptie(##class(Tools.Test.VerwachteExceptie).%New(##class(TECH.Exceptions.BaseException).%ClassName(1),Substrings))
- Set Authenticator = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator).%New()
- #dim Response As WS.Vhisie4.Auth.RegistreerContactGegevensResponse = Authenticator.RegistreerContactGegevens(RegistreerContactGegevensRequestStub)
+ Set Registreerder = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator.ContactGegevensRegistreerder).%New()
+ #dim Response As WS.Vhisie4.Auth.RegistreerContactGegevensResponse = Registreerder.Registreer(RegistreerContactGegevensRequestStub)
]]>