Exemplo n.º 1
0
        public static List <Error> TryBuild(
            string networkMapsDirectory,
            out NetworkMap networkMap)
        {
            var errors = new List <Error>();

            networkMap = new NetworkMap();

            errors.AddRange(
                networkMap.ReadNetworkMapsFromDirectory(
                    networkMapsDirectory
                    )
                );

            return(errors);
        }
Exemplo n.º 2
0
        public List <Error> TryBuildNetworkMap(
            string networkMapsDirectory)
        {
            var errors =
                NetworkMap.TryBuild(
                    networkMapsDirectory,
                    out NetworkMap networkMap
                    );

            errors.AddRange(
                ValidateNetworkMap()
                );

            if (!errors.Any())
            {
                NetworkMap = networkMap;
            }

            return(errors);
        }