Employees do not have a right to a job for life and can be dismissed for economic or performance reasons but they cannot be dismissed capriciously.
All employment implies an employment contract, which may be supplemented by labor legislation.
Either could provide for certain procedures to be followed, failing which any firing is a wrongful dismissal and for which the employee could ask a court for damages against the employer.
Can also be referred to as "dismissal without just cause."
See also Wrongful Dismissal In Canada.