示例#1
0
 protected void MakeSureRequestedCalculationIsValid(TargetingCalculationInfo calculationInfo)
 {
     if (calculationInfo.StatusCode > 0)
     {
         var issue = new ErrorIssue(
             "Your calculation (ID: " + calculationInfo.Id + ") has already been run on " + calculationInfo.StartedOn + ", it doesn't make sense to run the same calcualtion multiple times."
             );
         throw new ValidationException(issue);
     }
 }
示例#2
0
 public void SerializeValidationIssue(ErrorIssue issue, IJsonWriter writer)
 {
     this.Serialize(issue.Message, No.ValidationIssues, writer);
 }
示例#3
0
 public void Resolve(ErrorIssue issue)
 {
     this.serializer.SerializeValidationIssue(issue, writer);
 }