Last active
August 29, 2015 14:16
-
-
Save pcon/e6d4fa40493270543fc0 to your computer and use it in GitHub Desktop.
Testing Strategy Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String uppercase(String name) { | |
if (name == null) { | |
return 'NULL'; | |
} | |
if (name.trim() == '') { | |
return 'BLANK'; | |
} | |
return name.toUpperCase(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trigger SkipStatusCalled on Lead (before insert, before update) { | |
for (Lead lead : Trigger.new) { | |
if ( | |
lead.Called__c && | |
lead.Status == 'Open - Not Contacted' | |
) { | |
lead.Status = 'Working - Contacted' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment