File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,9 @@ public void ShouldSetupRScriptRunner()
145145 [ Test ]
146146 public void ShouldShutdownSchedulerAndDisposeOfMessageQueueListener ( )
147147 {
148+ var mockWebApiApplication = new Mock < IWebApiApplication > ( ) ;
149+ mockWebApiApplication . Setup ( x => x . Stop ( ) ) ;
150+ UnityContainer . RegisterInstance < IWebApiApplication > ( mockWebApiApplication . Object ) ;
148151 var mockEngineScheduler = new Mock < IEngineScheduler > ( ) ;
149152 mockEngineScheduler . Setup ( x => x . Shutdown ( ) ) ;
150153 UnityContainer . RegisterInstance < IEngineScheduler > ( mockEngineScheduler . Object ) ;
@@ -154,6 +157,7 @@ public void ShouldShutdownSchedulerAndDisposeOfMessageQueueListener()
154157
155158 Subject . Dispose ( ) ;
156159
160+ mockWebApiApplication . Verify ( x => x . Stop ( ) , Times . Once ) ;
157161 mockEngineScheduler . Verify ( x => x . Shutdown ( ) , Times . Once ) ;
158162 mockMessageQueueListener . Verify ( x => x . Dispose ( ) , Times . Once ) ;
159163 }
You can’t perform that action at this time.
0 commit comments