public RoutePatternTemplateFactory(RoutePatternAddressSelector selector, RoutePatternBinderFactory binderFactory)
        {
            if (selector == null)
            {
                throw new ArgumentNullException(nameof(selector));
            }

            if (binderFactory == null)
            {
                throw new ArgumentNullException(nameof(binderFactory));
            }

            _selector      = selector;
            _binderFactory = binderFactory;
        }
 public RoutePatternBinderTest()
 {
     BinderFactory = new RoutePatternBinderFactory(new UrlTestEncoder(), new DefaultObjectPoolProvider());
 }
 public RoutePatternTemplateTest()
 {
     BinderFactory = new RoutePatternBinderFactory(UrlEncoder.Default, new DefaultObjectPoolProvider());
 }