Esempio n. 1
0
 private void AssignParameters(
     LoadtestParameters parameters,
     Guid agentId,
     Guid customerId,
     Guid?engineerId,
     Guid loadtestTypeId,
     Guid projectId,
     Guid scenarioId)
 {
     RaiseIfDefaultGuid(agentId);
     RaiseIfDefaultGuid(customerId);
     if (engineerId.HasValue)
     {
         RaiseIfDefaultGuid(engineerId.Value);
     }
     RaiseIfDefaultGuid(loadtestTypeId);
     RaiseIfDefaultGuid(projectId);
     RaiseIfDefaultGuid(scenarioId);
     AgentId        = agentId;
     CustomerId     = customerId;
     EngineerId     = engineerId;
     LoadtestTypeId = loadtestTypeId;
     ProjectId      = projectId;
     ScenarioId     = scenarioId;
     Parameters     = parameters;
 }
Esempio n. 2
0
 public void Update(
     LoadtestParameters parameters,
     Guid agentId,
     Guid customerId,
     Guid?engineerId,
     Guid loadtestTypeId,
     Guid projectId,
     Guid scenarioId)
 {
     AssignParameters(parameters, agentId, customerId, engineerId, loadtestTypeId, projectId, scenarioId);
 }
Esempio n. 3
0
 public Loadtest(
     Guid guid,
     LoadtestParameters parameters,
     Guid agentId,
     Guid customerId,
     Guid?engineerId,
     Guid loadtestTypeId,
     Guid projectId,
     Guid scenarioId)
     : base(guid)
 {
     this.RaiseIfDefaultGuid(guid);
     this.AssignParameters(parameters, agentId, customerId, engineerId, loadtestTypeId, projectId, scenarioId);
 }