Skip to content

Instantly share code, notes, and snippets.

View dudunato's full-sized avatar

Dudu Nato dudunato

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<module type="IlluminatedCloud" version="4">
<component name="FacetManager">
<facet type="IlluminatedCloud" name="Illuminated Cloud">
<configuration>
<option name="connectionName" value="lausanne-dev" />
<option name="connectionType" value="OAUTH" />
<option name="defaultSourceRootUrl" value="file://$MODULE_DIR$/src" />
<option name="moduleContents">
<ModuleContents>
city population
UDI 10
SP 100
RIO 20
NEW YORK 80
- Interview Challenge
- Create a developer org in order to implement and complete this challenge
- https://developer.salesforce.com/signup
- We are going to create a custom app to manage School Applications:
- Feel free to be creative as how your data model will be designed
- The only standard object we are going to leverage would be Contact
- Keep it simple, don't need to have a lot of fields
- When a School manager enrolls a Student, a trigger needs to be fired to rollup the number of students enrolled to that specific school
- Unit test need to be in place covering the trigger
- When a School manager enrolls a Students, a process builder needs to be fired to notify the student that he is enrolled
<lightning:input
aura:id="emailField"
type="email"
label="{!$Label.c.BPEmail}"
value="{!v.payment.email}"
required="true"
onchange="{!c.lowerCaseEmail}"
/>
@IsTest
private class ContactPhotoUploadControllerTest {
@IsTest
private static void saveFileTest () {
ContactPhotoUploadController controller = new ContactPhotoUploadController(new ApexPages.StandardController());
PageReference pr = controller.saveFile();
System.assertEquals(null, pr);