public MashupScriptStorage(IPluginContext context, IMashupLocalFolder folder, ILogManager logManager, IMashupLoader mashupLoader) { _folder = folder; _mashupLoader = mashupLoader; _log = logManager.GetLogger(GetType()); _accountName = context.AccountName; }
public MashupScriptStorage(IPluginContext context, IMashupLocalFolder folder, ILogManager logManager, IMashupLoader mashupLoader) { _folder = folder; _mashupLoader = mashupLoader; _log = logManager.GetLogger(GetType()); _accountName = context.AccountName; }
public void TestSetUp() { _directory = Path.Combine(Path.GetTempPath(), DateTime.UtcNow.Ticks.ToString(CultureInfo.InvariantCulture)); Directory.CreateDirectory(_directory); var logManager = MockRepository.GenerateStub<ILogManager>(); logManager.Stub(lm => lm.GetLogger(Arg<Type>.Is.Same(typeof(MashupScriptStorage)))).Return(LogManager.GetLogger(typeof(MashupScriptStorage))); _mashupLocalFolder = ObjectFactory.GetInstance<IMashupLocalFolder>(); _mashupFolderPath = Path.Combine(_mashupLocalFolder.Path, MashupName); _storage = new MashupScriptStorage(new PluginContextMock { AccountName = new AccountName() }, _mashupLocalFolder, logManager, new MashupLoader()); }
public void TestSetUp() { _directory = Path.Combine(Path.GetTempPath(), DateTime.UtcNow.Ticks.ToString(CultureInfo.InvariantCulture)); Directory.CreateDirectory(_directory); var logManager = MockRepository.GenerateStub <ILogManager>(); logManager.Stub(lm => lm.GetLogger(Arg <Type> .Is.Same(typeof(MashupScriptStorage)))).Return(LogManager.GetLogger(typeof(MashupScriptStorage))); _mashupLocalFolder = ObjectFactory.GetInstance <IMashupLocalFolder>(); _mashupFolderPath = Path.Combine(_mashupLocalFolder.Path, MashupName); _storage = new MashupScriptStorage(new PluginContextMock { AccountName = new AccountName() }, _mashupLocalFolder, logManager, new MashupLoader()); }