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