public override void SetUp() { base.SetUp(); var serviceProvider = new ServiceProvider(); myWebScrapSC = serviceProvider.Browser(); }
public GenericDatumProvider(IDocumentBrowser webScrapSC, DatumLocator locator, IFetchPolicy fetchPolicy, IResultPolicy resultPolicy) { myWebScrapSC = webScrapSC; Locator = locator; FetchPolicy = fetchPolicy; ResultPolicy = resultPolicy; }
public DatumProviderFactory(IDocumentBrowser webScrapSC, IFetchPolicy fetchPolicy, IResultPolicy resultPolicy) { myWebScrapSC = webScrapSC; FetchPolicy = fetchPolicy; ResultPolicy = resultPolicy; LocatorRepository = new DatumLocatorRepository(); }
public static T LoadDocument <T>(this IDocumentBrowser self, string url) where T : IDocument { var docType = GetDocumentType(typeof(T)); self.Navigate(docType, new Uri(url)); return(( T )self.Document); }
public DatumProviderFactory( IDocumentBrowser webScrapSC, IFetchPolicy fetchPolicy, IResultPolicy resultPolicy ) { myWebScrapSC = webScrapSC; FetchPolicy = fetchPolicy; ResultPolicy = resultPolicy; LocatorRepository = new DatumLocatorRepository(); }
public Validator(IDocumentBrowser webScrapSC) { myWebScrapSC = webScrapSC; }
public override void TearDown() { myWebScrapSC = null; base.TearDown(); }
public DatumProviderFactory(IDocumentBrowser webScrapSC, IFetchPolicy fetchPolicy) : this(webScrapSC, fetchPolicy, null) { }
public static void Navigate(this IDocumentBrowser self, DocumentType docType, DocumentLocator locator) { self.Navigate(docType, locator, new NullLocatorMacroResolver()); }
public static void Navigate(this IDocumentBrowser self, DocumentType docType, Uri url) { self.Navigate(docType, new DocumentLocator(new Request(url))); }
public virtual void FixtureSetUp() { myServiceProvider = new ServiceProvider(); myBrowser = myServiceProvider.Browser(); }
public DatumProviderFactory( IDocumentBrowser webScrapSC, IFetchPolicy fetchPolicy ) : this(webScrapSC, fetchPolicy, null) { }
public Validator( IDocumentBrowser webScrapSC ) { myWebScrapSC = webScrapSC; }