A dotnet webapi application that processes a CSV file, persists the records to a SQL Server database and applies a few validations.
- All employees that have a blank hire date will have their hire date set to 01/01/01
Datetime.MinValue
. - All employee that have a blank ManagerEmployeeNumber are considered top-level managers.
- The employee number is unique, the first one seen will be the one considered valid.
- An empty file will be rejected.
- A file with missing file headers will be rejected.
- A file with missing columns will be rejected.
- A manager and its employees must belong to the same company.
- An employee can only be affiliated to one company.