コード例 #1
0
        public static Task <ShortestPathResult> FindShortestPath(this IPathFinder finder, string from, string to)
        {
            var fromObj = new ResortObjectTestObject(from);
            var toObj   = new ResortObjectTestObject(to);

            return(finder.FindShortestPath(fromObj, toObj));
        }
コード例 #2
0
        public ResortInfrastructure Build()
        {
            var result = new ResortInfrastructure {
                Objects = new List <IResortObject>()
            };

            foreach (var(key, value) in ResortInfo)
            {
                var obj = new ResortObjectTestObject(key, value);
                result.Objects.Add(obj);
            }

            return(result);
        }