Ejemplo n.º 1
0
            public async Task CorrectQuery_DoesNotReturnNull(int id)
            {
                //arrange
                var obj = new SUT.EasyClient("6d4b546936310f017557b2fb498b370b");
                var d   = obj.GetApi <IMovieApi>().Value;

                //act
                SUT.TmdbObjects.Movies.MovieFullDetails mov = await d.GetDetailsAsync(id).ConfigureAwait(false);

                //assert
                Assert.IsNotNull(mov);
            }
Ejemplo n.º 2
0
            public void IncorrectId_ThrowsException(int id, string language = "en")
            {
                //arrange
                var obj = new SUT.EasyClient("6d4b546936310f017557b2fb498b370b");
                var d   = obj.GetApi <IMovieApi>().Value;

                //assert
                Assert.Throws <AggregateException>(() => { SUT.TmdbObjects.Movies.MovieFullDetails mov = d.GetDetailsAsync(id).Result; });
            }