File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
IntegrationEngine.Core.Tests/Storage Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ namespace IntegrationEngine.Core.Tests.Storage
1414{
1515 public class ElasticsearchRepositoryTest : TestBase < ElasticsearchRepository >
1616 {
17- Mock < ElasticClient > ElasticClient { get ; set ; }
17+ Mock < IElasticClient > ElasticClient { get ; set ; }
1818 Mock < ILog > Log { get ; set ; }
1919
2020 [ SetUp ]
2121 public void Setup ( )
2222 {
23- ElasticClient = new Mock < ElasticClient > ( ) ;
23+ ElasticClient = new Mock < IElasticClient > ( ) ;
2424 Subject . ElasticClient = ElasticClient . Object ;
2525 Log = new Mock < ILog > ( ) ;
2626 Subject . Log = Log . Object ;
@@ -32,7 +32,7 @@ public void ShouldReturnListOfDocumentsWithIdsFromElasticsearch()
3232 var searchResponse = new Mock < ISearchResponse < CronTrigger > > ( ) ;
3333 var hits = new List < IHit < CronTrigger > > ( ) ;
3434 var cronTrigger = new CronTrigger ( ) ;
35- var hit = new Mock < Hit < CronTrigger > > ( ) ;
35+ var hit = new Mock < IHit < CronTrigger > > ( ) ;
3636 var expectedId = "1" ;
3737 hit . SetupGet ( x => x . Source ) . Returns ( ( ) => cronTrigger ) ;
3838 hit . SetupGet ( x => x . Id ) . Returns ( ( ) => expectedId ) ;
You can’t perform that action at this time.
0 commit comments