Example #1
0
        public void EnsureGetAuthenticationUriIncludesVersion()
        {
            var client = new MusicClient("id");
            var uri    = client.GetAuthenticationUri(Scope.ReadUserPlayHistory);

            Assert.AreEqual("https://sapi.mixrad.io/1.x/authorize/?response_type=code&client_id=id&scope=read_userplayhistory", uri.ToString(), "Expected a matching uri");
        }
Example #2
0
 public void EnsureGetAuthenticationUriIncludesVersion()
 {
     var client = new MusicClient("id");
     var uri = client.GetAuthenticationUri(Scope.ReadUserPlayHistory);
     Assert.AreEqual("https://sapi.mixrad.io/1.x/authorize/?response_type=code&client_id=id&scope=read_userplayhistory", uri.ToString(), "Expected a matching uri");
 }