예제 #1
0
        public void Load()
        {
            Tests = new ConcurrentDictionary <Guid, List <IServiceTestModelTO> >();
            var resourceTestDirectories = _directoryWrapper.GetDirectories(EnvironmentVariables.TestPath);

            foreach (var resourceTestDirectory in resourceTestDirectories)
            {
                var resIdString = DirectoryWrapper.GetDirectoryName(resourceTestDirectory);
                if (Guid.TryParse(resIdString, out Guid resId))
                {
                    Tests.AddOrUpdate(resId, GetTestList(resourceTestDirectory), (id, list) => GetTestList(resourceTestDirectory));
                }
            }
        }
예제 #2
0
        private void Load()
        {
            TestCoverageReports.Clear();
            var resourceTestCoverageDirectories = _directoryWrapper.GetDirectories(EnvironmentVariables.TestCoveragePath);

            foreach (var resourceTestCoverageDirectory in resourceTestCoverageDirectories)
            {
                var resIdString = _directoryWrapper.GetDirectoryName(resourceTestCoverageDirectory);
                if (Guid.TryParse(resIdString, out Guid resId))
                {
                    TestCoverageReports.AddOrUpdate(resId, GetReportList(resourceTestCoverageDirectory), (id, list) => GetReportList(resourceTestCoverageDirectory));
                }
            }
        }