Esempio n. 1
0
        public int CreateAutoDetector(int configurationId)
        {
            var configuration    = GetConfiguration(configurationId);
            var ptfConfigStorage = configuration.StorageRoot.GetNode(ConfigurationConsts.PtfConfig);

            var testSuite = configuration.TestSuite;

            cacheLock.EnterWriteLock();
            try
            {
                var autoDetector = AutoDetection.Create(configuration);
                AutoDetectionPool.AddOrUpdate(configurationId, _ => autoDetector, (_, _) => autoDetector);
            }
            finally
            {
                cacheLock.ExitWriteLock();
            }

            return(configurationId);
        }
        public static AutoDetection Create(IConfiguration configuration)
        {
            var instance = new AutoDetection(configuration);

            return(instance);
        }