コード例 #1
0
 public MutantMaterializer(IProjectClonesManager clonesManager,
     OriginalCodebase originalCodebase,
      IMutantsCache mutantsCache)
 {
     _clonesManager = clonesManager;
     _originalCodebase = originalCodebase;
     _mutantsCache = mutantsCache;
 }
コード例 #2
0
 public MutantMaterializer(IProjectClonesManager clonesManager,
                           OriginalCodebase originalCodebase,
                           IMutantsCache mutantsCache)
 {
     _clonesManager    = clonesManager;
     _originalCodebase = originalCodebase;
     _mutantsCache     = mutantsCache;
 }
コード例 #3
0
ファイル: WhiteCache.cs プロジェクト: Refresh06/visualmutator
 public WhiteCache(
     IProjectClonesManager fileManager,
     OptionsModel options,
     // ------
     int threadsCount,
     int maxCount
     )
 {
     _fileManager = fileManager;
     _options = options;
     _threadsCount = threadsCount;
     _moduleNameToFileName = new Dictionary<string, string>();
     _fileNameToModuleName = new Dictionary<string, string>();
     _whiteCaches = new ConcurrentDictionary<string, BlockingCollection<CciModuleSource>>();
     _clients = new ConcurrentQueue<WhiteClient>();
     _maxCount = maxCount;
     _initialMaxCount = maxCount;
     _log.Debug("Whitecache Initializing with max count: "+ _initialMaxCount);
     _paths = new BlockingCollection<ProjectFilesClone>();
 }
コード例 #4
0
ファイル: WhiteCache.cs プロジェクト: pkunze/visualmutator
 public WhiteCache(
     IProjectClonesManager fileManager,
     OptionsModel options,
     // ------
     int threadsCount,
     int maxCount
     )
 {
     _fileManager          = fileManager;
     _options              = options;
     _threadsCount         = threadsCount;
     _moduleNameToFileName = new Dictionary <string, string>();
     _fileNameToModuleName = new Dictionary <string, string>();
     _whiteCaches          = new ConcurrentDictionary <string, BlockingCollection <CciModuleSource> >();
     _clients              = new ConcurrentQueue <WhiteClient>();
     _maxCount             = maxCount;
     _initialMaxCount      = maxCount;
     _log.Debug("Whitecache Initializing with max count: " + _initialMaxCount);
     _paths = new BlockingCollection <ProjectFilesClone>();
 }
コード例 #5
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;
            }
        }
コード例 #6
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;
            }
        }