コード例 #1
0
        public void Setup()
        {
            _log      = new Mock <ILog>();
            _settings = new Mock <IReadonlyRuntimeSettings>();
            _settings.Setup(x => x.SourceDirectory).Returns(FsPath.Empty);

            _sut = new CsharpScriptHandler(_log.Object);
            _sut.SetHostFromRuntimeSettings(_settings.Object);
            _loaded = _sut.LoadScripts(new FsPath(TestEnvironment.GetTestFolder()));
        }
コード例 #2
0
        protected Builder(RuntimeSettings settings,
                          ILog log,
                          CsharpScriptHandler scriptHandler)
        {
            Settings = settings;

            _staticContent = new StaticTemplateContent();
            _loader        = new ShortCodeLoader(log, Settings, Program.AppSetting);
            _loader.LoadAll();

            _scriptHandler = scriptHandler;
            scriptHandler.SetHostFromRuntimeSettings(Settings);

            _steps = new List <IGeneratorStep>();
            _log   = log;
        }