An employee who quits the service of the person's employer for good cause and an employee who is dismissed by the person's employer for good cause are entitled to such proportion of the compensation which would have become due upon full performance of the contract of employment as the services already rendered by such employee bear to the services the employee was obligated to render had the contract of employment been fully performed.
N.D.C.C. § 34-03-09