// 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>(); }
public DataModelGenerator(DataModelGeneratorSettings settings) : this(settings, new FileSystem()) { }