public void Setup()
        {
            var log = new ConsoleLog();

            _sut = new ShortCodeLoader(log, TestEnvironment.GetMockedSettings(), TestEnvironment.GetMockedAppSettings());
            _sut.LoadAll();
        }
Example #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;
        }
Example #3
0
 public void Setup()
 {
     _logMock = new Mock <ILog>();
     _sut     = new ShortCodeLoader(_logMock.Object, TestEnvironment.GetMockedSettings(), TestEnvironment.GetMockedAppSettings());
     _sut.LoadAll();
 }