Beispiel #1
0
		public ScriptRunner(IUnusable unusable)
		{
			if (unusable == null)
				throw new ArgumentNullException(nameof(unusable));

			this._unusable = unusable;
		}
Beispiel #2
0
        public ScriptRunner(IUnusable unusable)
        {
            if (unusable == null)
            {
                throw new ArgumentNullException(nameof(unusable));
            }

            this._unusable = unusable;
        }
Beispiel #3
0
		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());
		}
Beispiel #4
0
        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());
        }