hobbies
Business rules for hobbies.
- employee
- name -> first name + last name is required
- email is required
- hobbies
- each employee must give at least 2 hobbies, maximum hobbies is 4
- each hobby can have optional information about
- How often do you participate in this hobby
- Is a paid hobby
- Would recommend this hobby to a friend
- your firm has foreign employees - form must support czech, english and german languages
Basic usage
; //create test data ; //business rules; //execute validationbusinessRules.Validate; //verify and display resultsif businessRules.Errors.HasErrors console.logbusinessRules.Errors.ErrorMessage;
Tests
Output of all business rules that are under tests.
business rules