Applied linting rules to tests within the Umbraco.Tests.Integration project.

This commit is contained in:
Andy Butland
2020-12-23 11:35:49 +01:00
parent 2dc72ea323
commit cd5f5778ee
101 changed files with 7717 additions and 7365 deletions

View File

@@ -1,4 +1,7 @@
using Examine;
// Copyright (c) Umbraco.
// See LICENSE for more details.
using Examine;
using Examine.LuceneEngine.Providers;
using Umbraco.Core.Composing;
using Umbraco.Examine;
@@ -12,15 +15,9 @@ namespace Umbraco.Tests.Integration.Testing
{
private readonly IExamineManager _examineManager;
public IntegrationTestComponent(IExamineManager examineManager)
{
_examineManager = examineManager;
}
public IntegrationTestComponent(IExamineManager examineManager) => _examineManager = examineManager;
public void Initialize()
{
ConfigureExamineIndexes();
}
public void Initialize() => ConfigureExamineIndexes();
public void Terminate()
{
@@ -31,7 +28,7 @@ namespace Umbraco.Tests.Integration.Testing
/// </summary>
private void ConfigureExamineIndexes()
{
foreach (var index in _examineManager.Indexes)
foreach (IIndex index in _examineManager.Indexes)
{
if (index is LuceneIndex luceneIndex)
{