Skip to content

Commit

Permalink
Fixed broken unit tests: round has been renamed rounds
Browse files Browse the repository at this point in the history
  • Loading branch information
iansrobinson committed Sep 5, 2011
1 parent 9c78a33 commit 48378f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void EachItemIdShouldBeTagUri()
var response = resource.Post(encounter.Id.ToString(), CreateRequest(encounter.Id, CreateFormUrlEncodedContent(ClientEndurance))); var response = resource.Post(encounter.Id.ToString(), CreateRequest(encounter.Id, CreateFormUrlEncodedContent(ClientEndurance)));
var item = response.Content.ReadAsOrDefault(); 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); Assert.AreEqual(expectedItemId, item.Id);
} }
Expand Down Expand Up @@ -138,7 +138,7 @@ public void EachItemShouldHaveSelfLink()
var item = response.Content.ReadAsOrDefault(); var item = response.Content.ReadAsOrDefault();
var selfLink = item.Links.First(l => l.RelationshipType.Equals("self")); 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); Assert.AreEqual(expectedUri, selfLink.Uri);
} }
Expand Down

0 comments on commit 48378f0

Please sign in to comment.