Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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);
 }