Esempio n. 1
0
        public void GetSeriesByRemoteIdTestFailedNoMirror()
        {
            WebInterface target = new WebInterface(apiKey);
            Task<List<Series>> taskResult = target.GetSeriesByRemoteId("tt0934814", string.Empty, string.Empty, null);

            Assert.Null(taskResult.Result);
        }
Esempio n. 2
0
        public void GetSeriesByRemoteIdTestSuccessfullZap2ItIdWithLanguage()
        {
            WebInterface target = new WebInterface(apiKey);
            Task<List<Series>> taskResult = target.GetSeriesByRemoteId(string.Empty, "EP00930779", "en", this.testMirror);
            List<Series> result = taskResult.Result;

            Assert.True(result.Count == 1);

            Series firstElement = result[0];
            Assert.Equal("en", firstElement.Language);
            Assert.Equal("Chuck", firstElement.Name);
            Assert.Equal("graphical/80348-g26.jpg", firstElement.Banner);
            Assert.Equal(new DateTime(2007, 09, 24), firstElement.FirstAired);
            Assert.Equal("tt0934814", firstElement.IMDBId);
            Assert.Equal("EP00930779", firstElement.Zap2ItId);
            Assert.Equal(80348, firstElement.Id);
        }
Esempio n. 3
0
        public void GetSeriesByRemoteIdTestFailedNoId()
        {
            WebInterface target = new WebInterface(apiKey);
            Task<List<Series>> taskResult = target.GetSeriesByRemoteId(string.Empty, string.Empty, this.testMirror);

            Assert.Null(taskResult.Result);
        }