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"); }
public void InitTest() { _config = new TestConfig(); _methods = new Dictionary<CollectionMethods, Func<Collection, object>>(); _methods[CollectionMethods.Images] = collection => collection.Images; }
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."); }
public void Initiator() { _config = new TestConfig(); _methods = new Dictionary<CompanyMethods, Func<Company, object>>(); _methods[CompanyMethods.Movies] = company => company.Movies; }
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; }
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; }
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; }
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); }
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; }
public override void Initiator() { base.Initiator(); _config = new TestConfig(); }
public void Initiator() { _config = new TestConfig(); }
public void InitTest() { _config = new TestConfig(); }