Skip to content

Instantly share code, notes, and snippets.

@liuggio
Last active August 29, 2015 13:59
Show Gist options
  • Save liuggio/10465653 to your computer and use it in GitHub Desktop.
Save liuggio/10465653 to your computer and use it in GitHub Desktop.
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)
liuggio = Employee::newToBeHired("liuggio", new Salary(1.00, "EUR"))
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