public ContinuousConfiguration(
            IWhiteSource whiteCache,
            OperatorsManager operatorsManager,
            IRootFactory <SessionConfiguration> sessionConfigurationFactory)
        {
            _whiteCache = whiteCache;
            _sessionConfigurationFactory = sessionConfigurationFactory;

            operatorsManager.GetOperators();
        }
        public ContinuousConfiguration(
            IWhiteSource whiteCache,
            OperatorsManager operatorsManager,
            IRootFactory<SessionConfiguration> sessionConfigurationFactory)
        {
            _whiteCache = whiteCache;
            _sessionConfigurationFactory = sessionConfigurationFactory;

            operatorsManager.GetOperators();
        }
示例#3
0
        public MutantsCache(
            OptionsModel options,
            IWhiteSource whiteCache,
            MutationSessionChoices choices,
            IMutationExecutor mutationExecutor)
        {
            _options          = options;
            _whiteCache       = whiteCache;
            _choices          = choices;
            _mutationExecutor = mutationExecutor;

            _disableCache = !_options.MutantsCacheEnabled;
            var config = new NameValueCollection
            {
                { "physicalMemoryLimitPercentage", "40" },
                { "cacheMemoryLimitMegabytes", "256" }
            };

            _cache = new MemoryCache("CustomCache", config);
            _map   = new ConcurrentDictionary <string, ConcurrentBag <TaskCompletionSource <MutationResult> > >();
        }
示例#4
0
        public SessionConfiguration(
            IProjectClonesManager fileManager,
            TestsLoader testLoader,
            IFactory <AutoCreationController> autoCreationControllerFactory,
            IRootFactory <SessionController> sessionFactory,
            IWhiteSource whiteCache)
        {
            _testLoader = testLoader;
            _autoCreationControllerFactory = autoCreationControllerFactory;
            _sessionFactory = sessionFactory;
            _whiteCache     = whiteCache;

            _originalFilesClone = fileManager.CreateClone("Mutants");

            _testsClone = fileManager.CreateClone("Tests");
            if (_originalFilesClone.IsIncomplete || _testsClone.IsIncomplete ||
                _testsClone.Assemblies.Count == 0)
            {
                AssemblyLoadProblem = true;
            }
        }
示例#5
0
        public MutantsCache(
            OptionsModel options,
            IWhiteSource whiteCache,
            MutationSessionChoices choices, 
            IMutationExecutor mutationExecutor)
        {
            _options = options;
            _whiteCache = whiteCache;
            _choices = choices;
            _mutationExecutor = mutationExecutor;

            _disableCache = !_options.MutantsCacheEnabled;
            var config = new NameValueCollection
                         {
                             {"physicalMemoryLimitPercentage", "40"},
                             {"cacheMemoryLimitMegabytes", "256"}
                         };

            _cache = new MemoryCache("CustomCache", config);
            _map = new ConcurrentDictionary<string, ConcurrentBag<TaskCompletionSource<MutationResult>>>();
        }
        public SessionConfiguration(
            IProjectClonesManager fileManager,
            TestsLoader testLoader,
            IFactory<AutoCreationController> autoCreationControllerFactory,
            IRootFactory<SessionController> sessionFactory,
            IWhiteSource whiteCache)
        {
            _testLoader = testLoader;
            _autoCreationControllerFactory = autoCreationControllerFactory;
            _sessionFactory = sessionFactory;
            _whiteCache = whiteCache;

            

            _originalFilesClone = fileManager.CreateClone("Mutants");

            _testsClone = fileManager.CreateClone("Tests");
            if (_originalFilesClone.IsIncomplete || _testsClone.IsIncomplete
                || _testsClone.Assemblies.Count == 0)
            {
                AssemblyLoadProblem = true;
            }
        }