Exemplo n.º 1
0
 public ScriptLoader(IFileWrapper file, IDirectoryWrapper directory, IScriptAnalyser analyser, IBuildScriptLocator buildScriptLocator, ILogger <ScriptLoader> log)
 {
     _file               = file;
     _directory          = directory;
     _analyser           = analyser;
     _log                = log;
     _buildScriptLocator = buildScriptLocator;
 }
Exemplo n.º 2
0
        public ScriptAnalyserTests()
        {
            List <IDirectiveProcessor> processors = new List <IDirectiveProcessor>()
            {
                new ClassDirectiveProcessor(),
                new AssemblyDirectiveProcessor(),
                new NamespaceDirectiveProcessor(),
                new CsDirectiveProcessor()
            };

            _analyser = new ScriptAnalyser(processors);
        }
Exemplo n.º 3
0
        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);
        }