Beispiel #1
0
        public void TestingAPIProviders()
        {
            string[] actual = { "/cinemaworld",
                                "/filmworld" };

            List <string> expected = APIProviders.Providers();

            for (int i = 0; i < actual.Length; i++)
            {
                Assert.Equal(expected[i], actual[i]);
            }
        }
        public List <string> GetURL(ExternalApiSettings externalApiSettings)
        {
            List <string> urls      = new List <string>();
            string        hostname  = externalApiSettings.BaseUrl;
            List <string> providers = APIProviders.Providers();
            string        endpoint  = Constants.MoviesEndpoint;

            foreach (string provider in providers)
            {
                urls.Add(GetBaseURL(hostname, provider, endpoint));
            }

            return(urls);
        }