public List <ErrorType> GetErrors(string deployTarget) { List <ErrorType> list = base.GetErrors(); if (AccountName.NullOrEmpty() || !Directory.Exists(Path.Combine(deployTarget, AccountName))) { list.Add(ErrorType.AccountName); } if (AccountPassword.NullOrEmpty() || AccountPassword == CONSTANTS.INVALID) { list.Add(ErrorType.AccountPassword); } if (StartTime == null || StartTime == CONSTANTS.INVALID_DATE) { list.Add(ErrorType.StartTime); } if (AssessmentLength <= 0) { list.Add(ErrorType.AssessmentLength); } if (ReadingTime < 0) { list.Add(ErrorType.ReadingTime); } return(list); }
public override List <ErrorType> GetErrors() { List <ErrorType> list = base.GetErrors(); if (AccountName.NullOrEmpty() || AccountName == CONSTANTS.INVALID) { list.Add(ErrorType.AccountName); } if (AccountPassword.NullOrEmpty() || AccountPassword == CONSTANTS.INVALID) { list.Add(ErrorType.AccountPassword); } if (StartTime == null || StartTime == CONSTANTS.INVALID_DATE) { list.Add(ErrorType.StartTime); } if (AssessmentLength <= 0) { list.Add(ErrorType.AssessmentLength); } if (ReadingTime < 0) { list.Add(ErrorType.ReadingTime); } return(list); }
public bool ResolveErrors(string deployTarget) { return(base.ResolveErrors() && !AccountName.NullOrEmpty() && Directory.Exists(Path.Combine(deployTarget, AccountName)) && !AccountPassword.NullOrEmpty() && AccountPassword != CONSTANTS.INVALID && startTime != null && AssessmentLength > 0); }
public override bool ResolveErrors() { return(base.ResolveErrors() && !AccountName.NullOrEmpty() && AccountName != CONSTANTS.INVALID && !AccountPassword.NullOrEmpty() && AccountPassword != CONSTANTS.INVALID && startTime != null && AssessmentLength > 0); }