This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Endjin.Sql.Spatial.Example | |
{ | |
#region Using Directives | |
using System; | |
using System.Data.SqlTypes; | |
using Microsoft.SqlServer.Types; | |
#endregion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Describe "Get-AllAgents" { | |
It "should return multiple agents" { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ConnectionDetails = @{ | |
ServerUrl = "teamcity.codebetter.com" | |
Credential = New-Object System.Management.Automation.PSCredential("teamcitysharpuser", (ConvertTo-SecureString "qwerty" -asplaintext -force)) | |
} | |
Describe "Get-AllAgents" { | |
$parameters = @{ ConnectionDetails = $ConnectionDetails } | |
$result = Get-AllAgents @parameters | |
It "should return multiple agents" { | |
$result.Count.should.have_count_greater_than(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-AllAgents | |
{ | |
param | |
( | |
[Hashtable] | |
$ConnectionDetails | |
) | |
$client = New-TeamCityConnection @PSBoundParameters | |
return $client.AllAgents() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$parameters = @{ | |
ConnectionDetails = @{ | |
ServerUrl = "teamcity.codebetter.com" | |
Credential = New-Object System.Management.Automation.PSCredential("teamcitysharpuser", (ConvertTo-SecureString "qwerty" -asplaintext -force)) | |
} | |
BuildConfigId = "bt437" | |
} | |
$builds = Get-BuildConfigsByBuildConfigId @parameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$parameters = @{ | |
ConnectionDetails = @{ | |
ServerUrl = "teamcity.codebetter.com" | |
Credential = Get-Credential | |
} | |
BuildConfigId = "bt437" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Print-TwoThings | |
{ | |
Param | |
( | |
[string] | |
$First, | |
[string] | |
$Second | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Outer-Method | |
{ | |
Param | |
( | |
[string] | |
$First, | |
[string] | |
$Second | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the public script we call as an entry point into the deployment / configuration process | |
Function Invoke-Deployment | |
{ | |
Param | |
( | |
$ApplicationPool, | |
$WebSite | |
) | |
Invoke-AppPoolTasks @PSBoundParameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Print-TwoThings | |
{ | |
Param | |
( | |
[string] | |
$First, | |
[string] | |
$Second | |
) |
OlderNewer