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