Esempio n. 1
0
 public void ValidateEmployee(GetCreateEngagementViewModel.Response response)
 {
     if (response.Employee is null)
     {
         throw new NullEmployeeException();
     }
 }
Esempio n. 2
0
 public void ValidateWorkplace(GetCreateEngagementViewModel.Response response)
 {
     if (response.Workplaces is null)
     {
         throw new NullWorkplaceException();
     }
 }
Esempio n. 3
0
 public void ValidateCreateEngagementViewModel(GetCreateEngagementViewModel.Response response)
 {
     ValidateEmployee(response);
     ValidateWorkplace(response);
     ValidateEmploymentStatuses(response);
 }