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