File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ public class LootTest
99{
1010 private const string UserAgent = "FakeAgent" ;
1111
12- private IRobots _robots = new Robots ( websiteUri : "https://loot.co.za" , userAgent : UserAgent ) ;
12+ private IRobots _robots = new Robots ( userAgent : UserAgent ) ;
1313
1414 [ SetUp ]
1515 public void Setup ( )
1616 {
1717 using ( var sr = new StreamReader ( "lootRobots.txt" ) )
1818 {
19- _robots . Load ( sr . ReadToEnd ( ) ) . Wait ( ) ;
19+ _robots . LoadRobotsContent ( sr . ReadToEnd ( ) ) . Wait ( ) ;
2020 }
2121 }
2222
Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ public class TakealotTest
99{
1010 private const string UserAgent = "FakeAgent" ;
1111
12- private IRobots _robots = new Robots ( websiteUri : "https://takealot.com" , userAgent : UserAgent ) ;
12+ private IRobots _robots = new Robots ( userAgent : UserAgent ) ;
1313
1414 [ SetUp ]
1515 public void Setup ( )
1616 {
1717 using ( var sr = new StreamReader ( "takealotRobots.txt" ) )
1818 {
19- _robots . Load ( sr . ReadToEnd ( ) ) . Wait ( ) ;
19+ _robots . LoadRobotsContent ( sr . ReadToEnd ( ) ) . Wait ( ) ;
2020 }
2121 }
2222
You can’t perform that action at this time.
0 commit comments