Skip to content

Instantly share code, notes, and snippets.

@ThatRendle
Created August 6, 2014 14:10
Show Gist options
  • Select an option

  • Save ThatRendle/fcf5918eced51bc38fac to your computer and use it in GitHub Desktop.

Select an option

Save ThatRendle/fcf5918eced51bc38fac to your computer and use it in GitHub Desktop.
Route-validating Assertion
public class CheckQueueRoutes : RouteMarchBase<QueueController>
{
[Fact]
public void MatchesDeleteMessagePath()
{
AssertRoute("api/testaccount/queue/delete/testqueue/testid?pop=testpop",
ctrl => ctrl.Delete("testaccount", "testqueue", "testid", "testpop", null));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment