示例#1
0
 internal static FileStatistics GetProductionStatistics(HttpPostedFileBase httpInput)
 {
     FileAnalyzerClient fileAnalyzerClient = new FileAnalyzerClient();
     var statistics = fileAnalyzerClient.ComputeStatistics(httpInput);
     httpInput.InputStream.Close();
     return statistics;
 }
 private FileStatistics GetProductionFileStatistics(string testFilePath)
 {
     var filePath = new FileInfo(testFilePath);
     var fakeHttpInput = Utils.PrepareFakeWebInput(filePath);
     FileAnalyzerClient fileAnalyzerClient = new FileAnalyzerClient();
     var statistics = fileAnalyzerClient.ComputeStatistics(fakeHttpInput);
     fakeHttpInput.InputStream.Close();
     return statistics;
 }