예제 #1
0
        public void Should_map_namespace_after(string @namespace, string expected)
        {
            var mapping = NamespaceMapping.MapAfterNamespace(@namespace);
            var url     = mapping.Map("MyWebApp.Api.Users", '.');

            url.ShouldEqual(expected);
        }
예제 #2
0
 /// <summary>
 /// Maps the namespace starting after this namespace.
 /// </summary>
 public NamespacePathMappingDsl MapNamespaceAfter(string @namespace)
 {
     Clear();
     _configuration.NamespacePathMappings.Add(
         NamespaceMapping.MapAfterNamespace(@namespace));
     return(this);
 }