public void Main() { Require.ProviderIs(StorageProvider.SqlServer); // Initialize domain Domain domain; try { var domainConfig = DomainConfigurationFactory.Create(); domainConfig.NamingConvention.NamespacePolicy = NamespacePolicy.AsIs; // Load assemblies with persistent classes from configuration : TestLog.Info("Loading plugins..."); domainConfig.Types.Register(typeof(QueueProcessor).Assembly, typeof(QueueProcessor).Namespace); domainConfig.UpgradeMode = DomainUpgradeMode.Recreate; domain = Domain.Build(domainConfig); } catch (DomainBuilderException e) { TestLog.Error("Domain build failed: " + e.ToString()); throw; } string key = CreateObjects.CreateTestEchoQueueProcessor(domain); IList <object> workList = QueueProcessor.GetWork(key, domain); foreach (object workUnit in workList) { QueueProcessor.Execute(key, workUnit, domain); } }