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)); }
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); }