public long RunScenario(Scenario model) { log.Debug(Debugging.HatcheryService_Invoked); var scenarioExecution = new ScenarioExecution { ScenarioId = model.Id, Started = DateTime.UtcNow, Status = ExecutionStatus.Created }; executionRepository.Add(scenarioExecution); LoadTestScenario scenario = Load(model); scenario.ExecutionId = scenarioExecution.Id; using (var wcf = GetWcfConnectionToDrone()) { log.Debug(Debugging.HatcheryService_Request); wcf.Channel.StartLoadTest(scenario); log.Debug(Debugging.HatcheryService_Response); } return scenarioExecution.Id; }
public void Update(ScenarioExecution scenarioExecution) { executionRepository.Update(scenarioExecution); }
public ScenarioExecution Add(ScenarioExecution scenarioExecution) { executionRepository.Add(scenarioExecution); return scenarioExecution; }
public void Update(ScenarioExecution scenarioExecution) { connection.Update(scenarioExecution); }
public ScenarioExecution Add(ScenarioExecution scenarioExecution) { connection.Insert(scenarioExecution); return scenarioExecution; }
public IEnumerable<Snapshot> GetByScenarioExecution(ScenarioExecution execution) { return GetByScenarioExecutionId(execution.Id); }