public void EnsureBlankLanguageCommandsDoNotIncludeLanguage() { MockApiCommand cmd = new MockApiCommand(); IMusicClientSettings settings = new MockMusicClientSettings(AppId, Country, null); IApiUriBuilder builder = new ApiUriBuilder(); Uri uri = builder.BuildUri(cmd, settings, null); Assert.IsFalse(uri.ToString().Contains("lang="), "Expected the language code not to be included in the URI"); }
public void EnsureBlankTerritoryCommandsDoNotIncludeTerritory() { MockBlankTerritoryCommand cmd = new MockBlankTerritoryCommand(); IMusicClientSettings settings = new MockMusicClientSettings("test", "country", null); IApiUriBuilder builder = new ApiUriBuilder(); Uri uri = builder.BuildUri(cmd, settings, null); Assert.IsTrue(uri.ToString().Contains("/-/"), "Expected the country code to be '-'"); Assert.IsFalse(uri.ToString().Contains("country"), "Expected the country code not to be included in the URI"); }