public void GetInvalidStreamData() { var result = WatchProviderParser.GetUserWatchProviders(new WatchProviders { Results = new Results { AR = new WatchProviderData() { StreamInformation = new List <StreamData> { new StreamData { provider_name = "Netflix", display_priority = 0, logo_path = "logo", provider_id = 8 } } } } }, new OmbiUser { StreamingCountry = "BLAH" }); Assert.That(result, Is.Empty); }
public void GetValidStreamData(string streamingCountry) { var result = WatchProviderParser.GetUserWatchProviders(new WatchProviders { Results = new Results { GB = new WatchProviderData() { StreamInformation = new List <StreamData> { new StreamData { provider_name = "Netflix", display_priority = 0, logo_path = "logo", provider_id = 8 } } } } }, new OmbiUser { StreamingCountry = streamingCountry }); Assert.That(result[0].provider_name, Is.EqualTo("Netflix")); }