I can't really find a solution for this, but does anyone can help me with creating Operating Hours for Apex Testing? I'm not quite sure what I have to create? Only the Operating Hours - record or more?
Apparantly it's just enough to create a record for Operating Hours.
OperatingHours oh = new OperatingHours(); oh.Name = 'TestOH'; insert oh;
You have to create a record for TimeSlot in your apex test class. Once that is inserted you will be able to test it.