public async Task Run([ServiceBusTrigger(ServiceBusConstants.QueueNames.TestEngineExecuteTests, Connection = ServiceBusConstants.ConnectionStringConfigurationKey)] Message message) { try { _correlationIdProvider.SetCorrelationId(message.GetCorrelationId()); await _testEngineService.RunTests(message); } catch (Exception exception) { _logger.Error(exception, $"An error occurred processing message on queue: '{ServiceBusConstants.QueueNames.TestEngineExecuteTests}'"); throw; } }
public Task <IActionResult> RunTests() { return(_testEngineService.RunTests(ControllerContext.HttpContext.Request)); }
public Task <IActionResult> RunTests([FromBody] TestExecutionModel testExecutionModel) { return(_testEngineService.RunTests(testExecutionModel)); }