Ejemplo n.º 1
0
        public void EnsureGetTrackSampleUriThrowsExceptionForNullId()
        {
            string       nullId = null;
            IMusicClient client = new MusicClient("test", "gb", (IApiRequestHandler)null);

            client.GetTrackSampleUri(nullId);
        }
 public void EnsureGetTrackSampleUriIsBuiltCorrectly()
 {
     IMusicClient client = new MusicClient("test", "gb", (IApiRequestHandler)null);
     Assert.AreEqual("http://api.ent.nokia.com/1.x/gb/products/1234/sample/?domain=music&client_id=test", client.GetTrackSampleUri("1234").ToString());
 }
 public void EnsureGetTrackSampleUriThrowsExceptionForNullId()
 {
     string nullId = null;
     IMusicClient client = new MusicClient("test", "gb", (IApiRequestHandler)null);
     client.GetTrackSampleUri(nullId);
 }
Ejemplo n.º 4
0
 public void EnsureGetTrackSampleUriIsBuiltCorrectly()
 {
     IMusicClient client = new MusicClient("test", "gb");
     Assert.AreEqual("http://api.mixrad.io/1.x/gb/products/1234/sample/?domain=music&client_id=test", client.GetTrackSampleUri("1234").ToString());
 }
Ejemplo n.º 5
0
        public void EnsureGetTrackSampleUriIsBuiltCorrectly()
        {
            IMusicClient client = new MusicClient("test", "gb", (IApiRequestHandler)null);

            Assert.AreEqual("http://api.ent.nokia.com/1.x/gb/products/1234/sample/?domain=music&client_id=test", client.GetTrackSampleUri("1234").ToString());
        }
Ejemplo n.º 6
0
        public void EnsureGetTrackSampleUriIsBuiltCorrectly()
        {
            IMusicClient client = new MusicClient("test", "gb");

            Assert.AreEqual("http://api.mixrad.io/1.x/gb/products/1234/sample/?domain=music&client_id=test", client.GetTrackSampleUri("1234").ToString());
        }