public void all_uris_for_a_resource_get_registered()
        {
            given_uri_registration();

            Handler.Process(MetaModel);

            var uri1 = UriResolver.Match("http://localhost/customer".ToUri());

            uri1.ResourceKey.ShouldBeOfType <IType>().Name.ShouldBe("Customer");
            uri1.UriName.ShouldBe("model");

            var uri2 = UriResolver.Match("http://localhost/preferedCustomer".ToUri());

            uri2.ResourceKey.ShouldBeOfType <IType>().Name.ShouldBe("Customer");
            uri2.UriCulture.ShouldBe(CultureInfo.GetCultureInfo("fr-FR"));
        }
Beispiel #2
0
 public void Literal()
 {
     _templatedUriResolver.Match(new Uri("https://localhost/events/"));
 }