@@ -257,7 +257,7 @@ public void GivenWorkloadUpdateAcrossFeatureBandsItUpdatesPacks(bool userLocal)
257
257
} ;
258
258
Directory . CreateDirectory ( Path . GetDirectoryName ( installStatePath ) ) ;
259
259
File . WriteAllText ( installStatePath , oldInstallState . ToString ( ) ) ;
260
- new WorkloadConfigCommand ( Parser . Instance . Parse ( [ "dotnet" , "workload" , "config" , "--update-mode" , "manifests" ] ) ) . Execute ( ) . Should ( ) . Be ( 0 ) ;
260
+ new WorkloadConfigCommand ( Parser . Instance . Parse ( [ "dotnet" , "workload" , "config" , "--update-mode" , "manifests" ] ) , workloadResolverFactory : workloadResolverFactory ) . Execute ( ) . Should ( ) . Be ( 0 ) ;
261
261
updateCommand . Execute ( ) ;
262
262
var newInstallState = InstallStateContents . FromPath ( installStatePath ) ;
263
263
newInstallState . Manifests . Should ( ) . BeNull ( ) ;
@@ -539,10 +539,10 @@ public void ApplyRollbackAcrossFeatureBand(string existingSdkFeatureBand, string
539
539
{
540
540
new ( new ManifestVersionUpdate ( new ManifestId ( "mock-manifest" ) , new ManifestVersion ( "2.0.0" ) , newSdkFeatureBand ) , null ) ,
541
541
} ;
542
- ( var dotnetPath , var updateCommand , var packInstaller , _ , _ , _ ) = GetTestInstallers ( parseResult , manifestUpdates : manifestsToUpdate , sdkVersion : "6.0.300" , identifier : existingSdkFeatureBand + newSdkFeatureBand , installedFeatureBand : existingSdkFeatureBand ) ;
542
+ ( var dotnetPath , var updateCommand , var packInstaller , _ , _ , _ , var resolverFactory ) = GetTestInstallers ( parseResult , manifestUpdates : manifestsToUpdate , sdkVersion : "6.0.300" , identifier : existingSdkFeatureBand + newSdkFeatureBand , installedFeatureBand : existingSdkFeatureBand ) ;
543
543
544
544
parseResult = Parser . Instance . Parse ( [ "dotnet" , "workload" , "config" , "--update-mode" , "manifests" ] ) ;
545
- WorkloadConfigCommand configCommand = new ( parseResult ) ;
545
+ WorkloadConfigCommand configCommand = new ( parseResult , workloadResolverFactory : resolverFactory ) ;
546
546
configCommand . Execute ( ) . Should ( ) . Be ( 0 ) ;
547
547
updateCommand . Execute ( )
548
548
. Should ( ) . Be ( 0 ) ;
0 commit comments