コード例 #1
0
ファイル: StatusController.cs プロジェクト: jaredpar/jenkins
 public StatusController()
 {
     var storage = ControllerUtil.CreateStorageAccount();
     _testResultStorage = new TestResultStorage(storage);
     _testCacheStats = new TestCacheStats(_testResultStorage, storage.CreateCloudTableClient());
     _testRunTable = storage.CreateCloudTableClient().GetTableReference(AzureConstants.TableNames.TestRunData);
 }
コード例 #2
0
 public TestCacheStats(TestResultStorage testResultStorage, CloudTableClient tableClient)
 {
     _testResultStorage    = testResultStorage;
     _unitTestCounterUtil  = new CounterUtil <UnitTestCounterEntity>(tableClient.GetTableReference(AzureConstants.TableNames.CounterUnitTestQuery));
     _testCacheCounterUtil = new CounterUtil <TestCacheCounterEntity>(tableClient.GetTableReference(AzureConstants.TableNames.CounterTestCache));
     _testRunCounterUtil   = new CounterUtil <TestRunCounterEntity>(tableClient.GetTableReference(AzureConstants.TableNames.CounterTestRun));
 }
コード例 #3
0
 public TestDataController()
 {
     _storageAccount = ControllerUtil.CreateStorageAccount();
     _storage = new TestResultStorage(_storageAccount);
     _stats = new TestCacheStats(_storage, _storageAccount.CreateCloudTableClient());
     _statsUtil = ControllerUtil.GetOrCreateCounterStatsUtil(_storageAccount);
 }
コード例 #4
0
ファイル: TestCacheStats.cs プロジェクト: jaredpar/jenkins
 public TestCacheStats(TestResultStorage testResultStorage, CloudTableClient tableClient)
 {
     _testResultStorage = testResultStorage;
     _unitTestCounterUtil = new CounterUtil<UnitTestCounterEntity>(tableClient.GetTableReference(AzureConstants.TableNames.CounterUnitTestQuery));
     _testCacheCounterUtil = new CounterUtil<TestCacheCounterEntity>(tableClient.GetTableReference(AzureConstants.TableNames.CounterTestCache));
     _testRunCounterUtil = new CounterUtil<TestRunCounterEntity>(tableClient.GetTableReference(AzureConstants.TableNames.CounterTestRun));
 }