Test example 11 – how to unit test event subscribers' logic
In the LookupValue extension, we extended the standard application logic by means of the following six event subscribers:
OnCreateCustomerFromTemplateOnBeforeCustomerInsert Event
[to be found in
ContactEvents.Codeunit.al
]OnApplyTemplateOnBeforeCustomerModifyEvent
[to be found in
CustomerTemplEvents.Codeunit.Codeunit.al
]OnAfterCopySellToCustomerAddressFieldsFromCustomer Event
[to be found in
SalesHeaderEvents.Codeunit.al
]OnBeforeCreateShptLineFromSalesLineEvent
[to be found in
WhseCreateSourceDocumentEvents.Codeunit.al
]OnBeforePostSalesDocEvent
[to be found in
SalesPostEvents.Codeunit.al
]OnBeforePostSourceDocumentEvent
[to be found in
WhsePostShipmentEvents.Codeunit.al
]
Customer wish
These event subscribers were based on the following customer wishes:
- Event subscribers 1 and 2:
When creating a customer from a customer template, the
Lookup Value Code
field should be inherited...