Beispiel #1
0
        public void ItCanInitializeFromAnHtmlString()
        {
            var fakeHtmlResponse = ReadTestAssetContent("SystemStatisticRpm.html");

            var statsCollection = BandwidthStatisticsCollection.FromHtmlResponse(fakeHtmlResponse);

            Assert.True(statsCollection.Any());
        }
Beispiel #2
0
        public void ItCanUnwindTheEntireEnumerable()
        {
            var fakeHtmlResponse = ReadTestAssetContent("SystemStatisticRpm.html");

            var statsCollection = BandwidthStatisticsCollection.FromHtmlResponse(fakeHtmlResponse);

            Assert.NotNull(statsCollection.ToList());
        }
Beispiel #3
0
        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));
        }