Hi Pim,
In Program.AddVirtualModules you can define the number of 'devices'
Program.Setup(()=>
{
Program.AddVirtualModules(moduleDomain, "Generic", "homegenie/generic/switch", 1, 1);
});
Change the last digit to the number of virtual devices you would like to create, for example 5:
Program.AddVirtualModules(moduleDomain, "Generic", "homegenie/generic/switch", 1, 5);