December 2019
Beginner to intermediate
770 pages
16h 14m
English
Embedding and writing would now lead to a test function with the following pseudo-code:
codeunit 60101 "Gifts PKT"{ // [FEATURE] Gifts SubType = Test; [Test] procedure AssignQuantityOnSalesLineToTriggerActive PromotionMessage() // [FEATURE] Gifts begin // [SCENARIO #0010] Assign quantity on sales line //[GIVEN] Packt setup with "Gift Tolerance Qty" set CreatePacktSetupWithGiftToleranceQty(); // [GIVEN] Customer with non-blocked customer category // with "Free Gifts Available" CreateCustomerWithNonBlockedCustomerCategoryWith FreeGiftsAvailable(); // [GIVEN] Item CreateItem(); // [GIVEN] Gift campaign for item and customer category // with "Minimum Order Quantity" set CreateGiftCampaignForItemAndCustomerCategory WithMinimumOrderQuantity(); ...Read now
Unlock full access