11using BeekmanLabs . UnitTesting ;
22using Common . Logging ;
3+ using Common . Logging . NLog ;
34using IntegrationEngine . Api ;
4- using IntegrationEngine . Core . MessageQueue ;
5+ using IntegrationEngine . Core . Configuration ;
56using IntegrationEngine . Core . R ;
6- using IntegrationEngine . Core . Storage ;
77using IntegrationEngine . MessageQueue ;
8- using IntegrationEngine . Scheduler ;
98using Microsoft . Practices . Unity ;
109using Moq ;
1110using Nest ;
1211using NUnit . Framework ;
13- using System ;
14- using System . Collections . Generic ;
1512
1613namespace IntegrationEngine . Tests
1714{
@@ -43,13 +40,15 @@ public void ShouldSetupLogging()
4340
4441 Subject . SetupLogging ( ) ;
4542
46- Assert . That ( Subject . Log . GetType ( ) , Is . EqualTo ( typeof ( Common . Logging . NLog . NLogLogger ) ) ) ;
43+ Assert . That ( Subject . Log . GetType ( ) , Is . EqualTo ( typeof ( NLogLogger ) ) ) ;
4744 }
4845
4946 [ Test ]
5047 public void ShouldSetupMessageQueueListener ( )
5148 {
5249 Subject . LoadConfiguration ( ) ;
50+ Subject . Container . RegisterType < IRabbitMQConfiguration , RabbitMQConfiguration > ( "DefaultRabbitMQ" ) ;
51+
5352
5453 Subject . SetupThreadedListenerManager ( ) ;
5554
@@ -59,6 +58,8 @@ public void ShouldSetupMessageQueueListener()
5958 [ Test ]
6059 public void ShouldSetupRScriptRunner ( )
6160 {
61+ Subject . Container . RegisterInstance < IElasticClient > ( new ElasticClient ( ) ) ;
62+
6263 Subject . SetupRScriptRunner ( ) ;
6364
6465 Subject . Container . Resolve < RScriptRunner > ( ) ;
@@ -69,10 +70,10 @@ public void ShouldDisposeOfResources()
6970 {
7071 var mockWebApiApplication = new Mock < IWebApiApplication > ( ) ;
7172 Subject . WebApiApplication = mockWebApiApplication . Object ;
72-
73+
7374 Subject . Dispose ( ) ;
7475
7576 mockWebApiApplication . Verify ( x => x . Dispose ( ) , Times . Once ) ;
7677 }
7778 }
78- }
79+ }
0 commit comments