Move Opportunity logic to a handler
A trigger should pick the event; a handler class should do the work.
Your task
Move the busy trigger's logic into beforeInsert and beforeUpdate on the handler. The provided trigger already routes to them.
public class AS_18655177781B_OpportunityHandler {
public static void beforeInsert(List<Opportunity> records) {
}
public static void beforeUpdate(List<Opportunity> records, Map<Id, Opportunity> oldMap) {
}
}Requirements
- labelsBlankOnInsert should pass
- usesEachRecordStage should pass
- relabelsOnStageChange should pass
- keepsDescriptionWhenStageSame should pass
- handlesBulkOfTwoHundred should pass