public void create_expected_matrix()
        {
            var inputString = EmbeddedData.AsString("han_carlson.txt");

            var intMap = _mapFileParser.GetModulesTypeMap(inputString);

            IsMappedStructureCorrected(intMap).ShouldBe(true);
        }
Ejemplo n.º 2
0
        private List <List <SystemModule> > SystemModulesMapBuilder(string systemMapFilePath)
        {
            var mapFileContent    = _mapFileContentProvider.GetMapFileContent(systemMapFilePath);
            var intModulesTypeMap = _mapFileParser.GetModulesTypeMap(mapFileContent);
            var systemModulesMap  = _systemModulesMapBuilder.GetSystemModulesMap(intModulesTypeMap);

            return(systemModulesMap);
        }
Ejemplo n.º 3
0
        public System GetSystemModulesMap(string mapPath)
        {
            var map = _mapFileParser.GetModulesTypeMap(mapPath);

            var systeModulesMap = new List <List <SystemModule> >();

            systeModulesMap.ForEach(x => x = new List <SystemModule>());

            for (var i = 0; i < map.Count; i++)
            {
                for (var j = 0; j < map[i].Count; j++)
                {
                    systeModulesMap[i][j] = new SystemModule(map[i][j]);
                }
            }

            return(new System(systeModulesMap, new SystemCalculator(new LogicalOperationCalculator())));
        }