Ejemplo n.º 1
0
 public ParseResultModel GetParsedResults(string url)
 {
     try
     {
         var document = _documentProcessor.LoadHtmlDocument(url);
         var result   = new ParseResultModel
         {
             ImageUrls     = _documentProcessor.GetPictures(document, url),
             TopWordCounts = _documentProcessor.GetTopNWordCount(document)
         };
         return(result);
     }
     catch (Exception ex)
     {
         //Log
     }
     return(null);
 }
 public void DocumentProcessService_GetPictures_NullArguments_ReturnsNull()
 {
     Assert.IsNull(_processor.GetPictures(null, null));
 }