Esempio n. 1
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)));
        }
Esempio n. 2
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, c => Task.CompletedTask);

            NodePath  = leaf.NodePath;
            HasSpread = leaf.HasSpread;

            Parameters = new ParameterExpectation(leaf);
        }