Skip to content

Commit 642fb22

Browse files
committed
Use a few more interfaces in repo tests
1 parent ab8bff8 commit 642fb22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

IntegrationEngine.Core.Tests/Storage/ElasticsearchRepositoryTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)