This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +1
-3
lines changed
Expand file tree Collapse file tree 3 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ public class PathConstructorTests : TempFileBaseClass
6060 public void NoRemoteUrl ( )
6161 {
6262 var provider = Substitutes . ServiceProvider ;
63- Services . PackageServiceProvider = provider ;
6463 var gitservice = provider . GetGitService ( ) ;
6564 var repo = Substitute . For < IRepository > ( ) ;
6665 var path = Directory . CreateSubdirectory ( "repo-name" ) ;
@@ -73,7 +72,6 @@ public void NoRemoteUrl()
7372 public void WithRemoteUrl ( )
7473 {
7574 var provider = Substitutes . ServiceProvider ;
76- Services . PackageServiceProvider = provider ;
7775 var gitservice = provider . GetGitService ( ) ;
7876 var repo = Substitute . For < IRepository > ( ) ;
7977 var path = Directory . CreateSubdirectory ( "repo-name" ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ public class SimpleRepositoryModelTests : TempFileBaseClass
1313 void SetupRepository ( string sha )
1414 {
1515 var provider = Substitutes . ServiceProvider ;
16- Services . PackageServiceProvider = provider ;
1716 var gitservice = provider . GetGitService ( ) ;
1817 var repo = Substitute . For < IRepository > ( ) ;
1918 gitservice . GetRepo ( Args . String ) . Returns ( repo ) ;
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ public static IServiceProvider GetServiceProvider(
106106 cc . ComposeExportedValue ( gitservice ) ;
107107 ( ( IComponentModel ) cm ) . DefaultExportProvider . Returns ( cc ) ;
108108 ret . GetService ( typeof ( SComponentModel ) ) . Returns ( cm ) ;
109+ Services . PackageServiceProvider = ret ;
109110
110111 var os = OperatingSystem ;
111112 var vs = IVSServices ;
You can’t perform that action at this time.
0 commit comments