示例#1
0
        // This ctor allows unit tests to mock the file system.
        internal DataModelGenerator(DataModelGeneratorSettings settings, IFileSystem fileSystem)
        {
            _settings = settings;
            _settings.Validate();

            _fileSystem = fileSystem;
            _pathToFileContentsDictionary = new Dictionary <string, string>();

            _additionalTypesRequiredList = new List <AdditionalTypeRequiredInfo>();
            _generatedClassNames         = new List <string>();

            _classInfoDictionary = new Dictionary <string, PropertyInfoDictionary>();
        }
示例#2
0
 public DataModelGenerator(DataModelGeneratorSettings settings)
     : this(settings, new FileSystem())
 {
 }