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); }
private void Execute(object parameter) { Ranks = new GoogleScrappingService().ScrapGoogle(SearchURL, SearchKey); }
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); }