public ScriptRunner(IUnusable unusable) { if (unusable == null) throw new ArgumentNullException(nameof(unusable)); this._unusable = unusable; }
public ScriptRunner(IUnusable unusable) { if (unusable == null) { throw new ArgumentNullException(nameof(unusable)); } this._unusable = unusable; }
public Manager(IAccount account, IStorage storage, IUnusable unusable = null) { if (account == null) throw new ArgumentNullException(nameof(account)); if (storage == null) throw new ArgumentNullException(nameof(storage)); this._tweetWorker = new TweetWorker(account); this._logWorker = new LogWorker(storage, 200); this._scriptRunner = new ScriptRunner(unusable ?? new Unusable()); }
public Manager(IAccount account, IStorage storage, IUnusable unusable = null) { if (account == null) { throw new ArgumentNullException(nameof(account)); } if (storage == null) { throw new ArgumentNullException(nameof(storage)); } this._tweetWorker = new TweetWorker(account); this._logWorker = new LogWorker(storage, 200); this._scriptRunner = new ScriptRunner(unusable ?? new Unusable()); }