public void Consumer_WhenYoutube_ReturnsVideoData() { MockFeed("OEmbed.Test.FakeData.Youtube.json"); var _consumer = new Consumer<Video>(_restCall.Object); Video video = _consumer.GetObject(""); Assert.AreEqual("Jude Law: My Take On Peace Video Contest", video.Title); }
public void Consumer_WhenQik_ReturnsVideoData() { MockFeed("OEmbed.Test.FakeData.Qik.json"); var _consumer = new Consumer<Video>(_restCall.Object); Video video = _consumer.GetObject(""); Assert.AreEqual("iPhone macro lens demonstration", video.Title); }
public void Consumer_WhenFlickrJson_ReturnsPhotoData() { MockFeed("OEmbed.Test.FakeData.Flickr.json"); var _consumer = new Consumer<Photo>(_restCall.Object); Photo photo = _consumer.GetObject(""); Assert.AreEqual("ZB8T0193", photo.Title); }