@isTest
private class ServiceResourceScheduleHandlerImplTest {
static testMethod void getUnavailableTimeslotsTest() {
//Initializing the test execution with mock values. Change it according to the implementation.
//In case of non-test execution, the lxscheduler.ServiceAppointmentRequestInfo instance will automatically initialize.
//Mock values for lxscheduler.ServiceResourceInfo
String userId = '005D2000000I1N6IAK';
String userName = 'someuser@example.com';
String email = 'someuser@example.com';
String serviceResourceId = '0HnD20000004C9bKAE';
List<String> territoryIds = new List<String>();
String resourceType = 'T';
lxscheduler.ServiceResourceInfo serviceResInfo = new lxscheduler.ServiceResourceInfo(userId, userName, email,
serviceResourceId, territoryIds, resourceType);
//Mock values for lxscheduler.ServiceAppointmentRequestInfo
DateTime startDate = System.now();
DateTime endDate = System.now();
List<lxscheduler.ServiceResourceInfo> serviceResources = new List<lxscheduler.ServiceResourceInfo>();
serviceResources.add(serviceResInfo);
String schedulingPolicyId = '0VrD20000004C9S';
String workTypeGroupId = '0VSD20000004C93OAE';
String accountId = '001D2000002pkXwIAI';
String primaryResourceId = '0HnD20000004C9bKAE';
String workTypeId = '08qD20000004C9XIAU';
String correlationId = 'SOME_ID';
lxscheduler.ServiceAppointmentRequestInfo mockRequestInfo = new lxscheduler.ServiceAppointmentRequestInfo(startDate, endDate, serviceResources,
schedulingPolicyId, workTypeGroupId, accountId,
primaryResourceId, workTypeId, correlationId);
ServiceResourceScheduleHandlerImpl.getUnavailableTimeslots(mockRequestInfo);
}
}