public override async Task<Widget> GetWidget() { YoutubeWidget tw = new YoutubeWidget( Properties["URL"].Content, YoutubeWidget.Selection.LikeCount); await tw.Update(); return tw; }
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); }