public void MakeTemplateFromParameters() { var foo = new Foo() { Bar = "hello world", Baz = 10 }; var uri = new Uri("http://example.org/blah"); var uri2 = uri.MakeTemplate(UriExtensions.ObjectToDictionary(foo)); Assert.Equal("http://example.org/blah?Bar=hello%20world&Baz=10", uri2.Resolve()); }