File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 22using RobotsParser ;
33using System . IO ;
44using System . Linq ;
5+ using System . Threading . Tasks ;
56
67namespace UnitTests ;
78
89public class LootTest
910{
10- private const string UserAgent = "FakeAgent" ;
11-
12- private IRobots _robots = new Robots ( userAgent : UserAgent ) ;
11+ private IRobots _robots = new Robots ( ( url ) => Download ( url ) ) ;
12+ private static async Task < string > Download ( string url )
13+ {
14+ return "" ;
15+ }
1316
1417 [ SetUp ]
1518 public void Setup ( )
Original file line number Diff line number Diff line change 22using RobotsParser ;
33using System . IO ;
44using System . Linq ;
5+ using System . Threading . Tasks ;
56
67namespace UnitTests ;
78
89public class TakealotTest
910{
10- private const string UserAgent = "FakeAgent" ;
11+ private IRobots _robots = new Robots ( ( url ) => Download ( url ) ) ;
1112
12- private IRobots _robots = new Robots ( userAgent : UserAgent ) ;
13+ private static async Task < string > Download ( string url )
14+ {
15+ return "" ;
16+ }
1317
1418 [ SetUp ]
1519 public void Setup ( )
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net6 .0</TargetFramework >
4+ <TargetFramework >net8 .0</TargetFramework >
55 <Nullable >enable</Nullable >
66
77 <IsPackable >false</IsPackable >
You can’t perform that action at this time.
0 commit comments