public MockedIssueLocationDTOImp()
 {
     IssueLocation = new IssueLocation()
     {
         PostCode = "2421",
         State    = "NSW"
     };
 }
 private IAnalysisIssueLocation Convert(string filePath, IssueLocation issueLocation) =>
 new AnalysisIssueLocation(
     issueLocation.Message,
     filePath,
     issueLocation.Line,
     issueLocation.EndLine,
     issueLocation.Column,
     issueLocation.EndColumn,
     null);
        private void SetLineHash(ModuleKeyToSourceMap map, IssueLocation location)
        {
            // Issue locations can span multiple lines, but only the first line is used
            // when calculating the hash
            var firstLineOfIssue = map.GetLineText(location.ModuleKey, location.TextRange.StartLine);

            if (firstLineOfIssue != null)
            {
                location.Hash = checksumCalculator.Calculate(firstLineOfIssue);
            }
        }