@@ -30,7 +30,7 @@ public void AoT_Publish_InRelease_Works()
30
30
var testInstance = CreateAspNetSdkTestAssetWithAot ( testAppName , new [ ] { "blazorwasm" } ) ;
31
31
File . WriteAllText ( Path . Combine ( testInstance . TestRoot , "blazorwasm" , "App.razor.css" ) , "h1 { font-size: 16px; }" ) ;
32
32
33
- var publishCommand = new PublishCommand ( Log , Path . Combine ( testInstance . TestRoot , "blazorwasm" ) ) ;
33
+ var publishCommand = new PublishCommand ( testInstance , "blazorwasm" ) ;
34
34
publishCommand . Execute ( "/p:Configuration=Release" ) . Should ( ) . Pass ( ) ;
35
35
36
36
var publishDirectory = publishCommand . GetOutputDirectory ( DefaultTfm , "Release" ) ;
@@ -68,7 +68,7 @@ public void AoT_Publish_WithExistingWebConfig_Works()
68
68
var webConfigContents = "test webconfig contents" ;
69
69
File . WriteAllText ( Path . Combine ( testInstance . TestRoot , "blazorwasm" , "web.config" ) , webConfigContents ) ;
70
70
71
- var publishCommand = new PublishCommand ( Log , Path . Combine ( testInstance . TestRoot , "blazorwasm" ) ) ;
71
+ var publishCommand = new PublishCommand ( testInstance , "blazorwasm" ) ;
72
72
publishCommand . Execute ( "/p:Configuration=Release" ) . Should ( ) . Pass ( ) ;
73
73
74
74
var publishDirectory = publishCommand . GetOutputDirectory ( DefaultTfm , "Release" ) ;
@@ -91,7 +91,7 @@ public void AoT_Publish_HostedAppWithScopedCss_VisualStudio()
91
91
buildCommand . Execute ( "/p:BuildInsideVisualStudio=true /p:Configuration=Release" ) . Should ( ) . Pass ( ) ;
92
92
93
93
// Publish
94
- var publishCommand = new PublishCommand ( Log , Path . Combine ( testInstance . TestRoot , "blazorhosted" ) ) ;
94
+ var publishCommand = new PublishCommand ( testInstance , "blazorhosted" ) ;
95
95
publishCommand . Execute ( "/p:BuildProjectReferences=false /p:BuildInsideVisualStudio=true /p:Configuration=Release" ) . Should ( ) . Pass ( ) ;
96
96
97
97
var publishDirectory = publishCommand . GetOutputDirectory ( DefaultTfm ) ;
0 commit comments