예제 #1
0
        public void Initiator()
        {
            _config = new TestConfig();

            if (string.IsNullOrWhiteSpace(_config.UserSessionId))
                throw new ConfigurationErrorsException("To successfully complete the ClientAccountTests you will need to specify a valid 'UserSessionId' in the test config file");
        }
예제 #2
0
        public void InitTest()
        {
            _config = new TestConfig();

            _methods = new Dictionary<CollectionMethods, Func<Collection, object>>();
            _methods[CollectionMethods.Images] = collection => collection.Images;
        }
예제 #3
0
        public void Initiator()
        {
            _config = new TestConfig();

            if (string.IsNullOrWhiteSpace(_config.Username) || string.IsNullOrWhiteSpace(_config.Password))
                throw new ConfigurationErrorsException("You need to provide a username and password or some tests won't be able to execute.");
        }
예제 #4
0
        public void Initiator()
        {
            _config = new TestConfig();

            _methods = new Dictionary<CompanyMethods, Func<Company, object>>();
            _methods[CompanyMethods.Movies] = company => company.Movies;
        }
예제 #5
0
        public void Initiator()
        {
            _config = new TestConfig();

            _methods = new Dictionary<TvSeasonMethods, Func<TvSeason, object>>();
            _methods[TvSeasonMethods.Credits] = tvSeason => tvSeason.Credits;
            _methods[TvSeasonMethods.Images] = tvSeason => tvSeason.Images;
            _methods[TvSeasonMethods.ExternalIds] = tvSeason => tvSeason.ExternalIds;
        }
예제 #6
0
        public void Initiator()
        {
            _config = new TestConfig();

            _methods = new Dictionary<PersonMethods, Func<Person, object>>();
            _methods[PersonMethods.Credits] = person => person.Credits;
            _methods[PersonMethods.Changes] = person => person.Changes;
            _methods[PersonMethods.Images] = person => person.Images;
        }
예제 #7
0
        public void Initiator()
        {
            _config = new TestConfig();

            _methods = new Dictionary<TvEpisodeMethods, Func<TvEpisode, object>>();
            _methods[TvEpisodeMethods.Credits] = tvEpisode => tvEpisode.Credits;
            _methods[TvEpisodeMethods.Images] = tvEpisode => tvEpisode.Images;
            _methods[TvEpisodeMethods.ExternalIds] = tvEpisode => tvEpisode.ExternalIds;
        }
예제 #8
0
        public void GetConfigSslTest()
        {
            _config = new TestConfig(true);

            Assert.IsFalse(_config.Client.HasConfig);
            _config.Client.GetConfig();
            Assert.IsTrue(_config.Client.HasConfig);

            Assert.IsNotNull(_config.Client.Config);
        }
예제 #9
0
        public void Initiator()
        {
            _config = new TestConfig();

            _methods = new Dictionary<MovieMethods, Func<Movie, object>>();
            _methods[MovieMethods.AlternativeTitles] = movie => movie.AlternativeTitles;
            _methods[MovieMethods.Casts] = movie => movie.Casts;
            _methods[MovieMethods.Images] = movie => movie.Images;
            _methods[MovieMethods.Keywords] = movie => movie.Keywords;
            _methods[MovieMethods.Releases] = movie => movie.Releases;
            _methods[MovieMethods.Trailers] = movie => movie.Trailers;
            _methods[MovieMethods.Translations] = movie => movie.Translations;
            _methods[MovieMethods.SimilarMovies] = movie => movie.SimilarMovies;
            _methods[MovieMethods.Lists] = movie => movie.Lists;
            _methods[MovieMethods.Changes] = movie => movie.Changes;
        }
예제 #10
0
        public override void Initiator()
        {
            base.Initiator();

            _config = new TestConfig();
        }
예제 #11
0
 public void Initiator()
 {
     _config = new TestConfig();
 }
예제 #12
0
 public void InitTest()
 {
     _config = new TestConfig();
 }
예제 #13
0
 public void Initiator()
 {
     _config = new TestConfig();
 }
예제 #14
0
 public void InitTest()
 {
     _config = new TestConfig();
 }
예제 #15
0
        public override void Initiator()
        {
            base.Initiator();

            _config = new TestConfig();
        }