Last active
August 29, 2015 13:57
-
-
Save benfoster/9762986 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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