Index: vhUnitTest/APPS/EC/Winkelkar/impl/TestAuthorisatieControleur.cls.xml =================================================================== diff -u -r41333 -r41411 --- vhUnitTest/APPS/EC/Winkelkar/impl/TestAuthorisatieControleur.cls.xml (.../TestAuthorisatieControleur.cls.xml) (revision 41333) +++ vhUnitTest/APPS/EC/Winkelkar/impl/TestAuthorisatieControleur.cls.xml (.../TestAuthorisatieControleur.cls.xml) (revision 41411) @@ -104,7 +104,7 @@ Do ##class(APPS.ApplicatieContext).Instance().GeefECommerceAPI().GeefAuthorisatieControleur().ControleerWerkenMetOfferte(OfferteEnWinkelkar1.OfferteID) }Catch { #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch() - Do $$$AssertEquals($P(Exception.GeefOmschrijving()," ("),"Offerte '"_OfferteEnWinkelkar1.OfferteID_"' Is Vhisie4.") + Do $$$AssertEquals($P(Exception.GeefOmschrijving()," ("),"Offerte '"_OfferteEnWinkelkar1.OfferteID_"' is een Vhisie4-offerte") Set IsFoutmeldingGeraised = 1 } Do $$$AssertTrue(IsFoutmeldingGeraised,"Er is foutmelding geraised, geen toegang tot offerte") @@ -125,7 +125,7 @@ Do ##class(APPS.ApplicatieContext).Instance().GeefECommerceAPI().GeefAuthorisatieControleur().ControleerWerkenMetWinkelkar(Winkelkar1.WinkelkarID) }Catch { #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch() - Do $$$AssertEquals($P(Exception.GeefOmschrijving()," ("),"Winkelkar '"_ Winkelkar1.WinkelkarID _"' Is Vhisie4.") + Do $$$AssertEquals($P(Exception.GeefOmschrijving()," ("),"Winkelkar '"_ Winkelkar1.WinkelkarID _"' is een Vhisie4-winkelkar") Set IsFoutmeldingGeraised = 1 } Do $$$AssertTrue(IsFoutmeldingGeraised,"Er is foutmelding geraised, geen toegang tot winkelkar") Index: APPS/EC/Winkelkar/impl/AuthorisatieControleur.cls.xml =================================================================== diff -u -r41350 -r41411 --- APPS/EC/Winkelkar/impl/AuthorisatieControleur.cls.xml (.../AuthorisatieControleur.cls.xml) (revision 41350) +++ APPS/EC/Winkelkar/impl/AuthorisatieControleur.cls.xml (.../AuthorisatieControleur.cls.xml) (revision 41411) @@ -18,6 +18,16 @@ 1 + +APPS.VKP.Offerte.OfferteRepository +1 + + + +DOM.EC.Winkelkar.impl.WinkelkarRepository +1 + + GebruikerApi:DOM.common.GebruikerAPI 1 @@ -28,6 +38,8 @@ Set ..GebruikerApi = $$$Inject(GebruikerApi,##class(DOM.DomeinContext).Instance().GeefGebruikerAPI()) Set ..VerkoopApi = ##class(APPS.ApplicatieContext).Instance().GeefVerkoopAPI() Set ..RuntimeContext = ##class(TECH.Context.RuntimeContext).Instance() + Set ..OfferteRepository = ##class(APPS.VKP.Offerte.impl.OfferteRepository).%New() + Set ..WinkelkarRepository = ##class(DOM.EC.Winkelkar.impl.WinkelkarRepository).%New() Quit $$$OK ]]> @@ -36,13 +48,13 @@ WinkelkarID:%String @@ -63,13 +75,13 @@ OfferteID:%String