Last active
August 29, 2015 13:59
-
-
Save liuggio/10465653 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
liuggio = new Employee(); | |
liuggio.createdAt = new Datetime("now") | |
liuggio.salaryPrice = 9999999.00 | |
liuggio.salaryCurrency = "EUR" | |
liuggio.name = "liuggio" | |
if not externalValidator.validate(liuggio, context) { | |
return error | |
} | |
myCompany.addJoinWithEmploee(liuggio) | |
This file contains hidden or 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
liuggio = Employee::newToBeHired("liuggio", new Salary(1.00, "EUR")) |
This file contains hidden or 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
liuggio = Employee::newToBeHired("liuggio", new Salary(1.00, "EUR")) | |
myCompany.hire(liuggio) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment