예제 #1
0
        public override void SetUp()
        {
            base.SetUp();

            var serviceProvider = new ServiceProvider();
            myWebScrapSC = serviceProvider.Browser();
        }
예제 #2
0
 public GenericDatumProvider(IDocumentBrowser webScrapSC, DatumLocator locator, IFetchPolicy fetchPolicy, IResultPolicy resultPolicy)
 {
     myWebScrapSC = webScrapSC;
     Locator      = locator;
     FetchPolicy  = fetchPolicy;
     ResultPolicy = resultPolicy;
 }
예제 #3
0
        public override void SetUp()
        {
            base.SetUp();

            var serviceProvider = new ServiceProvider();

            myWebScrapSC = serviceProvider.Browser();
        }
예제 #4
0
        public DatumProviderFactory(IDocumentBrowser webScrapSC, IFetchPolicy fetchPolicy, IResultPolicy resultPolicy)
        {
            myWebScrapSC = webScrapSC;
            FetchPolicy  = fetchPolicy;
            ResultPolicy = resultPolicy;

            LocatorRepository = new DatumLocatorRepository();
        }
예제 #5
0
        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);
        }
예제 #6
0
        public DatumProviderFactory( IDocumentBrowser webScrapSC, IFetchPolicy fetchPolicy, IResultPolicy resultPolicy )
        {
            myWebScrapSC = webScrapSC;
            FetchPolicy = fetchPolicy;
            ResultPolicy = resultPolicy;

            LocatorRepository = new DatumLocatorRepository();
        }
예제 #7
0
파일: Validator.cs 프로젝트: riyanhax/Maui
 public Validator(IDocumentBrowser webScrapSC)
 {
     myWebScrapSC = webScrapSC;
 }
예제 #8
0
        public override void TearDown()
        {
            myWebScrapSC = null;

            base.TearDown();
        }
예제 #9
0
 public DatumProviderFactory(IDocumentBrowser webScrapSC, IFetchPolicy fetchPolicy)
     : this(webScrapSC, fetchPolicy, null)
 {
 }
예제 #10
0
 public static void Navigate(this IDocumentBrowser self, DocumentType docType, DocumentLocator locator)
 {
     self.Navigate(docType, locator, new NullLocatorMacroResolver());
 }
예제 #11
0
 public static void Navigate(this IDocumentBrowser self, DocumentType docType, Uri url)
 {
     self.Navigate(docType, new DocumentLocator(new Request(url)));
 }
예제 #12
0
파일: TestBase.cs 프로젝트: riyanhax/Maui
 public virtual void FixtureSetUp()
 {
     myServiceProvider = new ServiceProvider();
     myBrowser         = myServiceProvider.Browser();
 }
예제 #13
0
파일: TestBase.cs 프로젝트: bg0jr/Maui
 public virtual void FixtureSetUp()
 {
     myServiceProvider = new ServiceProvider();
     myBrowser = myServiceProvider.Browser();
 }
예제 #14
0
        public override void TearDown()
        {
            myWebScrapSC = null;

            base.TearDown();
        }
예제 #15
0
 public DatumProviderFactory( IDocumentBrowser webScrapSC, IFetchPolicy fetchPolicy )
     : this(webScrapSC, fetchPolicy, null)
 {
 }
예제 #16
0
파일: Validator.cs 프로젝트: bg0jr/Maui
 public Validator( IDocumentBrowser webScrapSC )
 {
     myWebScrapSC = webScrapSC;
 }