Ejemplo n.º 1
0
        public ILessEngine GetEngine(IFileSystem fileSystem, string directory)
        {
            IStylizer stylizer = new HtmlStylizer();

            IPathResolver pathResolver = new TestPathResolver(directory);
            IFileReader reader = new TestFileReader(fileSystem, pathResolver);
            var importer = new Importer(reader);
            var parser = new Parser(stylizer, importer);
            ILogger logger = new ConsoleLogger(LogLevel.Error);
            return new LessEngine(parser, logger, true, true);
        }
Ejemplo n.º 2
0
        public ILessEngine GetEngine(IFileSystem fileSystem, string directory)
        {
            IStylizer stylizer = new HtmlStylizer();

            IPathResolver pathResolver = new TestPathResolver(directory);
            IFileReader   reader       = new TestFileReader(fileSystem, pathResolver);
            var           importer     = new Importer(reader);
            var           parser       = new Parser(stylizer, importer);
            ILogger       logger       = new ConsoleLogger(LogLevel.Error);

            return(new LessEngine(parser, logger, true, true));
        }