Skip to content

Commit 0185d9a

Browse files
authored
Replace RestSharp with HttpClient (#17)
* Replace RestSharp with HttpClient * Fix issues with the unit tests * Solve review comments * Increase timeout to 5 minutes * Solve review comments * Solve review comments
1 parent 9641b73 commit 0185d9a

File tree

5 files changed

+249
-156
lines changed

5 files changed

+249
-156
lines changed

QuantConnect.ThetaData.Tests/TestHelpers.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,9 @@ public static void ValidateHistoricalBaseData(IEnumerable<BaseData> history, Res
4242
Assert.IsNotNull(history);
4343
Assert.IsNotEmpty(history);
4444

45-
if (resolution < Resolution.Daily)
46-
{
47-
Assert.That(history.First().Time.Date, Is.EqualTo(startDate.ConvertFromUtc(TimeZoneThetaData).Date));
48-
Assert.That(history.Last().Time.Date, Is.EqualTo(endDate.ConvertFromUtc(TimeZoneThetaData).Date));
49-
}
50-
else
51-
{
52-
Assert.That(history.First().Time.Date, Is.GreaterThanOrEqualTo(startDate.ConvertFromUtc(TimeZoneThetaData).Date));
53-
Assert.That(history.Last().Time.Date, Is.LessThanOrEqualTo(endDate.ConvertFromUtc(TimeZoneThetaData).Date));
54-
}
45+
46+
Assert.That(history.First().Time.Date, Is.GreaterThanOrEqualTo(startDate.ConvertFromUtc(TimeZoneThetaData).Date));
47+
Assert.That(history.Last().Time.Date, Is.LessThanOrEqualTo(endDate.ConvertFromUtc(TimeZoneThetaData).Date));
5548

5649
switch (tickType)
5750
{

0 commit comments

Comments
 (0)