@@ -69,7 +69,7 @@ public async Task TestRunAsync()
69
69
hc . SetSingleton < IPromptManager > ( _promptManager . Object ) ;
70
70
hc . SetSingleton < IRunnerServer > ( _runnerServer . Object ) ;
71
71
hc . SetSingleton < IConfigurationStore > ( _configStore . Object ) ;
72
- hc . SetSingleton < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
72
+ hc . EnqueueInstance < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
73
73
runner . Initialize ( hc ) ;
74
74
var settings = new RunnerSettings
75
75
{
@@ -178,7 +178,7 @@ public async Task TestExecuteCommandForRunAsService(string[] args, bool configur
178
178
hc . SetSingleton < IMessageListener > ( _messageListener . Object ) ;
179
179
hc . SetSingleton < IConfigurationStore > ( _configStore . Object ) ;
180
180
hc . SetSingleton < IRunnerServer > ( _runnerServer . Object ) ;
181
- hc . SetSingleton < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
181
+ hc . EnqueueInstance < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
182
182
183
183
var command = new CommandSettings ( hc , args ) ;
184
184
@@ -211,7 +211,7 @@ public async Task TestMachineProvisionerCLI()
211
211
hc . SetSingleton < IMessageListener > ( _messageListener . Object ) ;
212
212
hc . SetSingleton < IConfigurationStore > ( _configStore . Object ) ;
213
213
hc . SetSingleton < IRunnerServer > ( _runnerServer . Object ) ;
214
- hc . SetSingleton < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
214
+ hc . EnqueueInstance < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
215
215
216
216
var command = new CommandSettings ( hc , new [ ] { "run" } ) ;
217
217
@@ -249,7 +249,7 @@ public async Task TestRunOnce()
249
249
hc . SetSingleton < IPromptManager > ( _promptManager . Object ) ;
250
250
hc . SetSingleton < IRunnerServer > ( _runnerServer . Object ) ;
251
251
hc . SetSingleton < IConfigurationStore > ( _configStore . Object ) ;
252
- hc . SetSingleton < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
252
+ hc . EnqueueInstance < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
253
253
runner . Initialize ( hc ) ;
254
254
var settings = new RunnerSettings
255
255
{
@@ -346,7 +346,7 @@ public async Task TestRunOnceOnlyTakeOneJobMessage()
346
346
hc . SetSingleton < IPromptManager > ( _promptManager . Object ) ;
347
347
hc . SetSingleton < IRunnerServer > ( _runnerServer . Object ) ;
348
348
hc . SetSingleton < IConfigurationStore > ( _configStore . Object ) ;
349
- hc . SetSingleton < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
349
+ hc . EnqueueInstance < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
350
350
runner . Initialize ( hc ) ;
351
351
var settings = new RunnerSettings
352
352
{
@@ -448,7 +448,7 @@ public async Task TestRunOnceHandleUpdateMessage()
448
448
hc . SetSingleton < IRunnerServer > ( _runnerServer . Object ) ;
449
449
hc . SetSingleton < IConfigurationStore > ( _configStore . Object ) ;
450
450
hc . SetSingleton < ISelfUpdater > ( _updater . Object ) ;
451
- hc . SetSingleton < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
451
+ hc . EnqueueInstance < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
452
452
453
453
runner . Initialize ( hc ) ;
454
454
var settings = new RunnerSettings
@@ -533,7 +533,7 @@ public async Task TestRemoveLocalRunnerConfig()
533
533
hc . SetSingleton < IConfigurationStore > ( _configStore . Object ) ;
534
534
hc . SetSingleton < IPromptManager > ( _promptManager . Object ) ;
535
535
hc . SetSingleton < IRunnerServer > ( _runnerServer . Object ) ;
536
- hc . SetSingleton < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
536
+ hc . EnqueueInstance < IErrorThrottler > ( _acquireJobThrottler . Object ) ;
537
537
538
538
var command = new CommandSettings ( hc , new [ ] { "remove" , "--local" } ) ;
539
539
0 commit comments