Пример #1
0
        public void CreateLeaf(string Route, out string NodePath, [Default("false")]out bool HasSpread, [Default("NONE")] out ParameterExpectation Parameters)
        {
            var leaf = new Route(Route, HttpVerbs.GET, env => Task.CompletedTask);
            NodePath = leaf.NodePath;
            HasSpread = leaf.HasSpread;

            Parameters = new ParameterExpectation(leaf);
        }
Пример #2
0
        protected bool Equals(ParameterExpectation other)
        {
            if (_segments.Count == 0) return other._segments.Count == 0;

            return _segments.OrderBy(x => x.Position).SequenceEqual(other._segments.OrderBy(x => x.Position));
        }