Skip to content

Commit b7edd04

Browse files
committed
unit tests now use new LookConfiguration public setters (rather than LookService methods)
1 parent 23f4da8 commit b7edd04

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Our.Umbraco.Look.Tests/TestHelper.cs

+10-10
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ internal static void IndexThings(IEnumerable<Thing> things)
5252
var locationStack = new Stack<Location>(things.Select(x => x.Location));
5353

5454
// setup indexers
55-
LookService.SetNameIndexer(x => nameStack.Pop());
56-
LookService.SetDateIndexer(x => dateStack.Pop());
57-
LookService.SetTextIndexer(x => textStack.Pop());
58-
LookService.SetTagIndexer(x => tagStack.Pop());
59-
LookService.SetLocationIndexer(x => locationStack.Pop());
55+
LookConfiguration.NameIndexer = x => nameStack.Pop();
56+
LookConfiguration.DateIndexer = x => dateStack.Pop();
57+
LookConfiguration.TextIndexer = x => textStack.Pop();
58+
LookConfiguration.TagIndexer = x => tagStack.Pop();
59+
LookConfiguration.LocationIndexer = x => locationStack.Pop();
6060

6161
// null for IPublishedContent as not required
6262
var indexingContext = new IndexingContext(null, null);
@@ -73,11 +73,11 @@ internal static void IndexThings(IEnumerable<Thing> things)
7373
}
7474

7575
// reset indexers
76-
LookService.SetNameIndexer(null);
77-
LookService.SetDateIndexer(null);
78-
LookService.SetTextIndexer(null);
79-
LookService.SetTagIndexer(null);
80-
LookService.SetLocationIndexer(null);
76+
LookConfiguration.NameIndexer = null;
77+
LookConfiguration.DateIndexer = null;
78+
LookConfiguration.TextIndexer = null;
79+
LookConfiguration.TagIndexer = null;
80+
LookConfiguration.LocationIndexer = null;
8181

8282
TestHelper.IndexDocuments(documents);
8383
}

0 commit comments

Comments
 (0)