コード例 #1
0
        public void GetSeriesByNameTestFailedSeriesNameNoLanguage()
        {
            WebInterface          target     = new WebInterface(apiKey);
            Task <List <Series> > taskResult = target.GetSeriesByName("Hugo", string.Empty, this.testMirror);

            Assert.Null(taskResult.Result);
        }
コード例 #2
0
        public void GetSeriesByNameTestFailedSeriesNameLanguageNoMirror()
        {
            WebInterface          target     = new WebInterface(apiKey);
            Task <List <Series> > taskResult = target.GetSeriesByName("Hugo", "en", null);

            Assert.Null(taskResult.Result);
        }
コード例 #3
0
        public void GetSeriesByNameTestSuccessfullWithNameAndLanguage()
        {
            WebInterface          target     = new WebInterface(apiKey);
            Task <List <Series> > taskResult = target.GetSeriesByName("Chuck", "en", this.testMirror);

            List <Series> result = taskResult.Result;

            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("NBC", firstElement.Network);
            Assert.Equal("tt0934814", firstElement.IMDBId);
            Assert.Equal("EP00930779", firstElement.Zap2ItId);
            Assert.Equal(80348, firstElement.Id);
        }