コード例 #1
0
        private IRestEndpoint GetEndpoint()
        {
            _context = new WebApiRequestContext(RequestContext);
            var navigator = new EndpointNavigator(_context, _config.StartResourceFactory, _config.EndpointServices);

            return(navigator.GetEndpointFromPath(ResourcePath));
        }
コード例 #2
0
        public EndpointNavigatorTests()
        {
            var startResourceFactory = new SingletonStartResourceFactory(new TestRestDirectory());

            _navigator = new EndpointNavigator(new TestRequestContext(), startResourceFactory, new TestEndpointServices());
        }