コード例 #1
0
        public When_TryStart_AsKeepAliveMode()
        {
            var executionHelper = new ExecutionsHelper();

            executionHelper.DeleteRecordsOfApplication(TestConstants.ApplicationName);

            TaskRepository.ClearCache();
        }
コード例 #2
0
        public void Initialize()
        {
            var executionHelper = new ExecutionsHelper();

            executionHelper.DeleteRecordsOfApplication(TestConstants.ApplicationName);

            TaskRepository.ClearCache();
        }
コード例 #3
0
        public void Initialize()
        {
            _blocksHelper = new BlocksHelper();
            _blocksHelper.DeleteBlocks(TestConstants.ApplicationName);
            _executionHelper = new ExecutionsHelper();
            _executionHelper.DeleteRecordsOfApplication(TestConstants.ApplicationName);

            _taskDefinitionId = _executionHelper.InsertTask(TestConstants.ApplicationName, TestConstants.TaskName);
            _executionHelper.InsertUnlimitedExecutionToken(_taskDefinitionId);

            TaskRepository.ClearCache();
        }
コード例 #4
0
        public When_FindDeadBlocks()
        {
            _blocksHelper = new BlocksHelper();
            _blocksHelper.DeleteBlocks(TestConstants.ApplicationName);
            _executionHelper = new ExecutionsHelper();
            _executionHelper.DeleteRecordsOfApplication(TestConstants.ApplicationName);

            _taskDefinitionId = _executionHelper.InsertTask(TestConstants.ApplicationName, TestConstants.TaskName);
            _executionHelper.InsertAvailableExecutionToken(_taskDefinitionId);

            TaskRepository.ClearCache();
        }
コード例 #5
0
        public When_GetLastNumericRangeBlock(ITestOutputHelper output)
        {
            this.output   = output;
            _blocksHelper = new BlocksHelper();
            _blocksHelper.DeleteBlocks(TestConstants.ApplicationName);
            _executionHelper = new ExecutionsHelper();
            _executionHelper.DeleteRecordsOfApplication(TestConstants.ApplicationName);

            _taskDefinitionId = _executionHelper.InsertTask(TestConstants.ApplicationName, TestConstants.TaskName);
            _executionHelper.InsertUnlimitedExecutionToken(_taskDefinitionId);

            TaskRepository.ClearCache();
        }
コード例 #6
0
 public ExecutionsHelper()
 {
     TaskRepository.ClearCache();
     ConnectionStore.Instance.SetConnection(new TaskId(TestConstants.ApplicationName, TestConstants.TaskName), new ClientConnectionSettings(TestConstants.TestConnectionString, TestConstants.QueryTimeout));
 }