public void Get_Full_URL()
        {
            string searchKey = "conveyancing software";
            string expected  = "https://www.google.com.au/search?num=100&q=conveyancing software";

            var result = new GoogleScrappingService().ConstructSearchURL(searchKey);

            Assert.Equal(result, expected);
        }
Exemplo n.º 2
0
 private void Execute(object parameter)
 {
     Ranks = new GoogleScrappingService().ScrapGoogle(SearchURL, SearchKey);
 }
Exemplo n.º 3
0
 public GoogleScrappingViewModel()
 {
     GoogleScrappingCommand = new Command(Execute, CanExecute);
     Ranks = new GoogleScrappingService().ScrapGoogle(SearchURL, SearchKey);
 }
        public void Get_My_Page_Rank()
        {
            var result = new GoogleScrappingService().ScrapGoogle("www.smokeball.com.au", "conveyancing software");

            Assert.NotNull(result);
        }