public Loadtest(Guid guid, LoadtestParameters parameters, Guid agentId, Guid customerId, Guid?engineerId , Guid loadtestTypeId, Guid projectId, Guid scenarioId) : base(guid) { RaiseIfDefaultGuid(guid); AssignParameters(parameters, agentId, customerId, engineerId, loadtestTypeId, projectId, scenarioId); }
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(projectId); RaiseIfDefaultGuid(scenarioId); AgentId = agentId; CustomerId = customerId; EngineerId = engineerId; LoadtestTypeId = loadtestTypeId; ProjectId = projectId; ScenarioId = scenarioId; Parameters = parameters; }
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); }