Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed broken unit tests: round has been renamed rounds

  • Loading branch information...
commit 48378f0f17d6852e0b68802cbe9503fb821b8acf 1 parent 9c78a33
@iansrobinson authored
View
4 src/HydrasAndHypermedia.Exercises/Exercise03/Part02_ResolvingEncounterResourceTests.cs
@@ -107,7 +107,7 @@ public void EachItemIdShouldBeTagUri()
var response = resource.Post(encounter.Id.ToString(), CreateRequest(encounter.Id, CreateFormUrlEncodedContent(ClientEndurance)));
var item = response.Content.ReadAsOrDefault();
- var expectedItemId = string.Format("tag:restinpractice.com,2011-09-05:/encounters/{0}/round/{1}", encounter.Id, encounter.GetAllRounds().Last().Id);
+ var expectedItemId = string.Format("tag:restinpractice.com,2011-09-05:/encounters/{0}/rounds/{1}", encounter.Id, encounter.GetAllRounds().Last().Id);
Assert.AreEqual(expectedItemId, item.Id);
}
@@ -138,7 +138,7 @@ public void EachItemShouldHaveSelfLink()
var item = response.Content.ReadAsOrDefault();
var selfLink = item.Links.First(l => l.RelationshipType.Equals("self"));
- var expectedUri = new Uri(string.Format("http://{0}:8081/encounters/{1}/round/{2}", Environment.MachineName, encounter.Id, encounter.GetAllRounds().Last().Id));
+ var expectedUri = new Uri(string.Format("http://{0}:8081/encounters/{1}/rounds/{2}", Environment.MachineName, encounter.Id, encounter.GetAllRounds().Last().Id));
Assert.AreEqual(expectedUri, selfLink.Uri);
}
Please sign in to comment.
Something went wrong with that request. Please try again.