Skip to content

Commit

Permalink
Fixed SPProjectServerServiceApp test
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuijs committed Mar 31, 2021
1 parent ac0ee44 commit aed1066
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ try
Mock -CommandName Get-SPServiceApplication -MockWith {
$spServiceApp = [PSCustomObject]@{
DisplayName = $testParams.Name
Name = $testParams.Name
}
$spServiceApp | Add-Member -MemberType ScriptMethod `
-Name GetType `
Expand Down Expand Up @@ -174,6 +175,7 @@ try
$spServiceApp = [PSCustomObject]@{
TypeName = "Project Application Services"
DisplayName = $testParams.Name
Name = $testParams.Name
ApplicationPool = @{ Name = $testParams.ApplicationPool }
}
$spServiceApp = $spServiceApp | Add-Member -MemberType ScriptMethod -Name GetType -Value {
Expand Down Expand Up @@ -204,6 +206,7 @@ try
$spServiceApp = [PSCustomObject]@{
TypeName = "Project Application Services"
DisplayName = $testParams.Name
Name = $testParams.Name
ApplicationPool = @{ Name = "Wrong App Pool Name" }
}
$spServiceApp = $spServiceApp | Add-Member -MemberType ScriptMethod -Name GetType -Value {
Expand Down Expand Up @@ -241,6 +244,7 @@ try
$spServiceApp = [PSCustomObject]@{
TypeName = "Project Application Services"
DisplayName = $testParams.Name
Name = $testParams.Name
ApplicationPool = @{ Name = $testParams.ApplicationPool }
}
$spServiceApp = $spServiceApp | Add-Member -MemberType ScriptMethod -Name GetType -Value {
Expand Down

0 comments on commit aed1066

Please sign in to comment.