/// <summary> /// Instantiates new ExportContext instance (only for testing/integration) /// </summary> public ExportContext(Assembly[] sourceAssemblies, IFilesOperations fileOperationsServiceOverride = null) { FileOperations = fileOperationsServiceOverride ?? new FilesOperations(); FileOperations.Context = this; Global = new GlobalParameters(sourceAssemblies); SourceAssemblies = sourceAssemblies; Location = new Location(this); Project = new ProjectBlueprint(); }
/// <summary> /// Instantiates new ExportContext instance (only for testing/integration) /// </summary> public ExportContext(IFilesOperations fileOperationsServiceOverride = null) { Warnings = new List <RtWarning>(); _fileOperations = fileOperationsServiceOverride; if (_fileOperations == null) { _fileOperations = new FilesOperations(); } _fileOperations.Context = this; Global = new GlobalParameters(); Location = new Location(this); Project = new ProjectBlueprint(); }