public MutantsContainer(
     IMutationExecutor mutationExecutor,
     OriginalCodebase originalCodebase
     )
 {
     _mutationExecutor = mutationExecutor;
     _originalCodebase = originalCodebase;
 }
 public MutantsContainer(
     IMutationExecutor mutationExecutor,
     OriginalCodebase originalCodebase
     )
 {
     _mutationExecutor = mutationExecutor;
     _originalCodebase = originalCodebase;
 }
Beispiel #3
0
        private readonly OptionsModel _options;//AKB

        public MutantsContainer(
            IMutationExecutor mutationExecutor,
            OriginalCodebase originalCodebase,
            OptionsModel options//AKB
            )
        {
            _mutationExecutor = mutationExecutor;
            _originalCodebase = originalCodebase;
            _options          = options;//AKB
        }
        private readonly OptionsModel _options;//AKB

        public MutantsContainer(
            IMutationExecutor mutationExecutor,
            OriginalCodebase originalCodebase,
            OptionsModel options//AKB
            )
        {
            _mutationExecutor = mutationExecutor;
            _originalCodebase = originalCodebase;
            _options = options;//AKB

        }
Beispiel #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> > >();
        }
Beispiel #6
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>>>();
        }