diff --git a/force-app/main/default/classes/AccountAutomations.cls b/force-app/main/default/classes/AccountAutomations.cls
new file mode 100644
index 0000000..a10bab4
--- /dev/null
+++ b/force-app/main/default/classes/AccountAutomations.cls
@@ -0,0 +1,27 @@
+public class AccountAutomations {
+ Public static Account setDefaultDescription(Account a){
+ If (a.Description != null) return a;
+ Else {
+ a.Description = 'Default description';
+ return a;
+ }
+ }
+ public static Account setDefaultSite(Account a){
+ a.Site = 'Single location';
+ return a;
+ }
+ public static Account setDefaultShippingAddress(Account a){
+ a.shippingstreet = '111 W Illinois St';
+ a.shippingstate = 'Chicago';
+ a.shippingpostalcode ='60654';
+ return a;
+ }
+ public static Account setDefaultPhone(Account a) {
+ a.Phone='9999999';
+ return a;
+ }
+ public static Account setDefaultURL(Account a) {
+ a.website = 'www.copado.com';
+ return a;
+ }
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/AccountAutomations.cls-meta.xml b/force-app/main/default/classes/AccountAutomations.cls-meta.xml
new file mode 100644
index 0000000..4b0bc9f
--- /dev/null
+++ b/force-app/main/default/classes/AccountAutomations.cls-meta.xml
@@ -0,0 +1,5 @@
+
+
+ 55.0
+ Active
+
diff --git a/force-app/main/default/classes/AccountAutomationsTest.cls b/force-app/main/default/classes/AccountAutomationsTest.cls
new file mode 100644
index 0000000..aee521b
--- /dev/null
+++ b/force-app/main/default/classes/AccountAutomationsTest.cls
@@ -0,0 +1,46 @@
+@IsTest
+private class AccountAutomationsTest {
+
+ @isTest static void testDefaultDescription(){
+ Account acc = new Account(Name = 'My Test Account');
+ insert acc;
+ acc = AccountAutomations.setDefaultDescription(acc);
+ System.assertEquals('Default description', acc.Description, 'When description is null, it is updated to Default description');
+
+ acc.Description = 'New Description Manual';
+
+ acc = AccountAutomations.setDefaultDescription(acc);
+ System.assertNotEquals('Default description', acc.Description, 'When description is NOT null, it is NOT updated to Default description');
+ }
+
+ @isTest static void testDefaultSite(){
+ Account acc = new Account(Name = 'My Test Account');
+ insert acc;
+ acc = AccountAutomations.setDefaultSite(acc);
+ System.assertEquals('Single location', acc.Site, 'Default Site is Single location');
+ }
+
+ @isTest static void testDefaultShippingAddress(){
+ Account acc = new Account(Name = 'My Test Account');
+ insert acc;
+ acc = AccountAutomations.setDefaultShippingAddress(acc);
+ System.assertEquals('111 W Illinois St', acc.ShippingStreet, 'Default ShippingStreet is 111 W Illinois St');
+ System.assertEquals('Chicago', acc.ShippingState, 'Default Shippingtate is Chicago');
+ System.assertEquals('60654', acc.ShippingPostalCode, 'Default ShippingPostalCode is 60654');
+ }
+
+ @isTest static void testDefaultPhone(){
+ Account acc = new Account(Name = 'My Test Account');
+ insert acc;
+ acc = AccountAutomations.setDefaultPhone(acc);
+ System.assertEquals('9999999', acc.Phone, 'Default phone number is 9999999');
+ }
+
+ @isTest static void testDefaultURL(){
+ Account acc = new Account(Name = 'My Test Account');
+ insert acc;
+ acc = AccountAutomations.setDefaultURL(acc);
+ System.assertEquals('www.copado.com', acc.Website, 'Default website is www.copado.com');
+ }
+
+}
\ No newline at end of file
diff --git a/force-app/main/default/classes/AccountAutomationsTest.cls-meta.xml b/force-app/main/default/classes/AccountAutomationsTest.cls-meta.xml
new file mode 100644
index 0000000..4b0bc9f
--- /dev/null
+++ b/force-app/main/default/classes/AccountAutomationsTest.cls-meta.xml
@@ -0,0 +1,5 @@
+
+
+ 55.0
+ Active
+