コード例 #1
0
 public HotelExtractorService(
     IFileService fileService,
     IHtmlExtractorService htmlExtractorService)
 {
     _fileService          = fileService;
     _htmlExtractorService = htmlExtractorService;
 }
コード例 #2
0
 public HtmlExtractorTest(IHtmlExtractorService htmlExtractorService)
 {
     _htmlExtractorService = htmlExtractorService;
     HtmlNode            = File.ReadAllText(Path.Combine(FilePathHelper.GetTestDataFolder("HtmlExtractor"), "testHtml.html"));
     ContentTestHtmlNode = @"<html>
                         <head>test</head>
                         <body>
                             <h1>Mojtaba1234</h1>
                             <h2>12.55</h2>
                         </body>
                     </html>";
 }