public void ItCanInitializeFromAnHtmlString() { var fakeHtmlResponse = ReadTestAssetContent("SystemStatisticRpm.html"); var statsCollection = BandwidthStatisticsCollection.FromHtmlResponse(fakeHtmlResponse); Assert.True(statsCollection.Any()); }
public void ItCanUnwindTheEntireEnumerable() { var fakeHtmlResponse = ReadTestAssetContent("SystemStatisticRpm.html"); var statsCollection = BandwidthStatisticsCollection.FromHtmlResponse(fakeHtmlResponse); Assert.NotNull(statsCollection.ToList()); }
public async Task <IEnumerable <BandwidthStatistics> > GetStatisticsAsync() { var response = await _client.SendSecuredCommand("/userRpm/SystemStatisticRpm.htm?interval=10&sortType=5&Num_per_page=100&Goto_page=1").ConfigureAwait(false); return(BandwidthStatisticsCollection.FromHtmlResponse(response)); }