public ScriptLoader(IFileWrapper file, IDirectoryWrapper directory, IScriptAnalyser analyser, IBuildScriptLocator buildScriptLocator, ILogger <ScriptLoader> log) { _file = file; _directory = directory; _analyser = analyser; _log = log; _buildScriptLocator = buildScriptLocator; }
public ScriptAnalyserTests() { List <IDirectiveProcessor> processors = new List <IDirectiveProcessor>() { new ClassDirectiveProcessor(), new AssemblyDirectiveProcessor(), new NamespaceDirectiveProcessor(), new CsDirectiveProcessor() }; _analyser = new ScriptAnalyser(processors); }
public ScriptAnalyserTests() { _fileWrapper = new Mock <IFileWrapper>(); _pathWrapper = new Mock <IPathWrapper>(); List <IDirectiveProcessor> processors = new List <IDirectiveProcessor>() { new ClassDirectiveProcessor(), new AssemblyDirectiveProcessor(_fileWrapper.Object, _pathWrapper.Object), new NamespaceDirectiveProcessor(), new CsDirectiveProcessor(), new NugetPackageDirectirveProcessor() }; _analyser = new ScriptAnalyser(processors); }