Skip to content

Instantly share code, notes, and snippets.

@benfoster
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benfoster/9762986 to your computer and use it in GitHub Desktop.
Save benfoster/9762986 to your computer and use it in GitHub Desktop.
public class root_mapper : base_context
{
static object result;
Establish ctx = ()
=> new RootMapper<PostsController>(x => x.Index()).RegisterRoutes(routes);
Because of = ()
=> result = "~/".WithMethod(HttpVerbs.Get);
It Should_map_to_posts_index = ()
=> result.ShouldMapTo<PostsController>(x => x.Index());
It Should_have_the_name_root = ()
=> result.WithName("root");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment