Example #1
0
 public override async Task<Widget> GetWidget()
 {
     YoutubeWidget tw = new YoutubeWidget(
         Properties["URL"].Content,
         YoutubeWidget.Selection.LikeCount);
     await tw.Update();
     return tw;
 }
Example #2
0
        public void TestYoutubeWidget()
        {
            YoutubeWidget test
                = new YoutubeWidget("foo",
                    YoutubeWidget.Selection.ViewCount);
            test.HttpService = new MockHttpService("YoutubeJson.txt");

            test.Update().Wait();
            Assert.AreEqual(100, test.Counter);

        }