Skip to content

Commit

Permalink
Remove ServiceLocator calls
Browse files Browse the repository at this point in the history
  • Loading branch information
donnie-msft committed Nov 24, 2021
1 parent 8804b57 commit bcf0f8b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ public V3PackageDetailControlModelTests(GlobalServiceProvider sp, V3PackageSearc
.Returns(new ValueTask<INuGetSearchService>(mockSearchService.Object));
#pragma warning restore ISB001 // Dispose of proxies

ServiceLocator.InitializePackageServiceProvider(this);

_testInstance = new PackageDetailControlModel(
mockServiceBroker.Object,
solutionManager: solMgr.Object,
Expand Down Expand Up @@ -353,8 +351,6 @@ public V3PackageSolutionDetailControlModelTests(GlobalServiceProvider sp, V3Pack
.Returns(new ValueTask<INuGetSearchService>(mockSearchService.Object));
#pragma warning restore ISB001 // Dispose of proxies

ServiceLocator.InitializePackageServiceProvider(this);

NuGetUIThreadHelper.JoinableTaskFactory.Run(async () =>
{
_testInstance = await PackageSolutionDetailControlModel.CreateAsync(
Expand Down

0 comments on commit bcf0f8b

Please sign in to comment.