public void SetUp()
        {
            _mockPoster        = MockRepository.GenerateStub <IWebPoster>();
            _mockThreadSleeper = MockRepository.GenerateStub <IThreadSleeper>();

            _rpu = new PackageTrackrRetryPostUtility(_mockPoster, _mockThreadSleeper);
        }
        public void SetUp()
        {
            _mockPoster = MockRepository.GenerateStub<IWebPoster>();
            _mockThreadSleeper = MockRepository.GenerateStub<IThreadSleeper>();

            _rpu = new PackageTrackrRetryPostUtility(_mockPoster, _mockThreadSleeper);
        }
Exemple #3
0
 public ConsoleServicesLauncher(IProcessLauncher processLauncher,
                                IOutput output,
                                IConsoleHandler consoleHandler,
                                IServiceLauncherStatus status,
                                IThreadSleeper threadSleeper)
 {
     this.processLauncher = processLauncher;
     this.output          = output;
     this.consoleHandler  = consoleHandler;
     this.status          = status;
     this.threadSleeper   = threadSleeper;
 }
 /// <summary>
 ///		Creates a new instance of the <see cref="PackageTrackrRetryPostUtility"/>.
 /// </summary>
 /// <param name="poster">
 ///		The base <see cref="IWebPoster"/> that will be retried if necessary.
 /// </param>
 public PackageTrackrRetryPostUtility(IWebPoster poster, IThreadSleeper threadSleeper)
 {
     _poster = poster;
     _threadSleeper = threadSleeper;
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameHub" /> class.
 /// </summary>
 /// <param name="bootstrapper">The bootstrapper used to create a game prior to running.</param>
 /// <param name="sleeper">
 /// A <see cref="IThreadSleeper" /> to sleep the thread after each game step, thereby throttling
 /// the game enough to record progress visually, if needed.</param>
 public GameHub(IBootstrapper bootstrapper, IThreadSleeper sleeper)
 {
     this.bootstrapper = bootstrapper;
     this.sleeper      = sleeper;
 }
 /// <summary>
 ///		Creates a new instance of the <see cref="PackageTrackrRetryPostUtility"/>.
 /// </summary>
 /// <param name="poster">
 ///		The base <see cref="IWebPoster"/> that will be retried if necessary.
 /// </param>
 public PackageTrackrRetryPostUtility(IWebPoster poster, IThreadSleeper threadSleeper)
 {
     _poster        = poster;
     _threadSleeper = threadSleeper;
 }
 public WordCountCache(ILogger logger, IThreadSleeper threadSleeper)
 {
     _logger        = logger;
     _threadSleeper = threadSleeper;
 }
Exemple #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameHub" /> class.
 /// </summary>
 /// <param name="bootstrapper">The bootstrapper used to create a game prior to running.</param>
 /// <param name="sleeper">
 /// A <see cref="IThreadSleeper" /> to sleep the thread after each game step, thereby throttling
 /// the game enough to record progress visually, if needed.</param>
 public GameHub(IBootstrapper bootstrapper, IThreadSleeper sleeper)
 {
     this.bootstrapper = bootstrapper;
     this.sleeper = sleeper;
 }