Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix build break caused by Keane releasing a new album

  • Loading branch information...
commit a3d010a3cad770dbe20e25a84dd070a9955e37e3 1 parent 843ce09
Anthony Steele authored
31 src/SevenDigital.Api.Dynamic.Integration.Tests/DynamicXmlParserTests.cs
View
@@ -8,13 +8,16 @@
using SevenDigital.Api.Wrapper.EndpointResolution.OAuth;
using SevenDigital.Api.Wrapper.Utility.Http;
-namespace SevenDigital.Api.Dynamic.Integration.Tests {
+namespace SevenDigital.Api.Dynamic.Integration.Tests
+{
[TestFixture]
- public class DynamicXmlParserTests {
+ public class DynamicXmlParserTests
+ {
private RequestCoordinator _requestCoordinator;
[SetUp]
- public void SetUp() {
+ public void SetUp()
+ {
IOAuthCredentials oAuthCredentials = EssentialDependencyCheck<IOAuthCredentials>.Instance;
IApiUri apiUri = EssentialDependencyCheck<IApiUri>.Instance;
var httpGetResolver = new HttpClient();
@@ -24,7 +27,8 @@ public class DynamicXmlParserTests {
}
[Test]
- public void Can_get_an_artist() {
+ public void Can_get_an_artist()
+ {
const string endpoint = "artist/details";
var endPointInfo = new EndPointInfo { UriPath = endpoint, Parameters = new Dictionary<string,string> { { "artistId", "1" } } };
@@ -43,10 +47,19 @@ public class DynamicXmlParserTests {
}
[Test]
- public void Can_get_an_artists_releases() {
+ public void Can_get_an_artists_releases()
+ {
const string endpoint = "artist/releases";
- var endPointInfo = new EndPointInfo { UriPath = endpoint, Parameters = new Dictionary<string,string> { { "artistId", "1" } } };
+ var endPointInfo = new EndPointInfo
+ {
+ UriPath = endpoint,
+ Parameters = new Dictionary<string,string>
+ {
+ { "artistId", "1" },
+ { "pageSize", "100" }
+ }
+ };
var response = _requestCoordinator.HitEndpoint(endPointInfo);
@@ -54,11 +67,13 @@ public class DynamicXmlParserTests {
string [] titles = Enumerable.ToArray(Enumerable.Select<dynamic, string>(dx.releases.release, (Func<dynamic, string>) (r => r.title.value)));
- foreach (var title in titles) {
+ foreach (var title in titles)
+ {
Console.WriteLine(title);
}
- Assert.That(titles, Has.Member("Night Train").And.Member("Perfect Symmetry"));
+ Assert.That(titles, Has.Member("Night Train"));
+ Assert.That(titles, Has.Member("Perfect Symmetry"));
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.