PowershellRepository_TestsResults.json

{"TagFilter":null,"ExcludeTagFilter":null,"TestNameFilter":null,"TotalCount":23,"PassedCount":23,"FailedCount":0,"SkippedCount":0,"PendingCount":0,"InconclusiveCount":0,"Time":{"Ticks":363366508,"Days":0,"Hours":0,"Milliseconds":336,"Minutes":0,"Seconds":36,"TotalDays":0.00042056308796296297,"TotalHours":0.010093514111111111,"TotalMilliseconds":36336.6508,"TotalMinutes":0.60561084666666665,"TotalSeconds":36.3366508},"TestResult":[{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":25079645,"Days":0,"Hours":0,"Milliseconds":507,"Minutes":0,"Seconds":2,"TotalDays":2.9027366898148146E-05,"TotalHours":0.00069665680555555556,"TotalMilliseconds":2507.9645,"TotalMinutes":0.041799408333333336,"TotalSeconds":2.5079645},"Name":"Should not throw","Result":"Passed","Context":"When the GetPSBoundParameters method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1439154,"Days":0,"Hours":0,"Milliseconds":143,"Minutes":0,"Seconds":0,"TotalDays":1.6656875E-06,"TotalHours":3.99765E-05,"TotalMilliseconds":143.9154,"TotalMinutes":0.00239859,"TotalSeconds":0.1439154},"Name":"Should be a hashtable","Result":"Passed","Context":"When the GetPSBoundParameters method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1051288,"Days":0,"Hours":0,"Milliseconds":105,"Minutes":0,"Seconds":0,"TotalDays":1.2167685185185185E-06,"TotalHours":2.9202444444444442E-05,"TotalMilliseconds":105.1288,"TotalMinutes":0.0017521466666666667,"TotalSeconds":0.1051288},"Name":"Should return the expected properties","Result":"Passed","Context":"When the GetPSBoundParameters method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":8880456,"Days":0,"Hours":0,"Milliseconds":888,"Minutes":0,"Seconds":0,"TotalDays":1.0278305555555556E-05,"TotalHours":0.00024667933333333335,"TotalMilliseconds":888.0456,"TotalMinutes":0.01480076,"TotalSeconds":0.8880456},"Name":"Should not throw","Result":"Passed","Context":"When the Get method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":5814989,"Days":0,"Hours":0,"Milliseconds":581,"Minutes":0,"Seconds":0,"TotalDays":6.7303113425925923E-06,"TotalHours":0.00016152747222222222,"TotalMilliseconds":581.4989,"TotalMinutes":0.0096916483333333338,"TotalSeconds":0.58149889999999993},"Name":"Should return a type of PowershellRepository","Result":"Passed","Context":"When the Get method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":4772279,"Days":0,"Hours":0,"Milliseconds":477,"Minutes":0,"Seconds":0,"TotalDays":5.523471064814815E-06,"TotalHours":0.00013256330555555556,"TotalMilliseconds":477.22790000000003,"TotalMinutes":0.0079537983333333329,"TotalSeconds":0.4772279},"Name":"Should call Get-PSRepository one time","Result":"Passed","Context":"When the Get method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1169108,"Days":0,"Hours":0,"Milliseconds":116,"Minutes":0,"Seconds":0,"TotalDays":1.3531342592592593E-06,"TotalHours":3.2475222222222222E-05,"TotalMilliseconds":116.91080000000001,"TotalMinutes":0.0019485133333333334,"TotalSeconds":0.1169108},"Name":"Should return null if PSRepository does not exist","Result":"Passed","Context":"When the Get method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":743665,"Days":0,"Hours":0,"Milliseconds":74,"Minutes":0,"Seconds":0,"TotalDays":8.6072337962962963E-07,"TotalHours":2.0657361111111112E-05,"TotalMilliseconds":74.3665,"TotalMinutes":0.0012394416666666667,"TotalSeconds":0.0743665},"Name":"Should return name and version if PSRepository does exist","Result":"Passed","Context":"When the Get method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":7418343,"Days":0,"Hours":0,"Milliseconds":741,"Minutes":0,"Seconds":0,"TotalDays":8.5860451388888887E-06,"TotalHours":0.00020606508333333333,"TotalMilliseconds":741.8343,"TotalMinutes":0.012363905,"TotalSeconds":0.7418343},"Name":"Should not throw","Result":"Passed","Context":"When the Test method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":6062984,"Days":0,"Hours":0,"Milliseconds":606,"Minutes":0,"Seconds":0,"TotalDays":7.0173425925925919E-06,"TotalHours":0.00016841622222222221,"TotalMilliseconds":606.2984,"TotalMinutes":0.010104973333333333,"TotalSeconds":0.6062984},"Name":"Should return a type of \"boolean\"","Result":"Passed","Context":"When the Test method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":807970,"Days":0,"Hours":0,"Milliseconds":80,"Minutes":0,"Seconds":0,"TotalDays":9.3515046296296289E-07,"TotalHours":2.2443611111111109E-05,"TotalMilliseconds":80.797,"TotalMinutes":0.0013466166666666667,"TotalSeconds":0.080797},"Name":"Should return $false when PSRepository does not exist","Result":"Passed","Context":"When the Test method is called\\Ensure = Present","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1649752,"Days":0,"Hours":0,"Milliseconds":164,"Minutes":0,"Seconds":0,"TotalDays":1.909435185185185E-06,"TotalHours":4.5826444444444441E-05,"TotalMilliseconds":164.9752,"TotalMinutes":0.0027495866666666668,"TotalSeconds":0.1649752},"Name":"Should throw when PSRepository does not exist and SourceLocation unspecified","Result":"Passed","Context":"When the Test method is called\\Ensure = Present","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1161503,"Days":0,"Hours":0,"Milliseconds":116,"Minutes":0,"Seconds":0,"TotalDays":1.3443321759259259E-06,"TotalHours":3.2263972222222222E-05,"TotalMilliseconds":116.1503,"TotalMinutes":0.0019358383333333334,"TotalSeconds":0.1161503},"Name":"Should not throw when PSGallery does not exist and SourceLocation unspecified","Result":"Passed","Context":"When the Test method is called\\Ensure = Present","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1185057,"Days":0,"Hours":0,"Milliseconds":118,"Minutes":0,"Seconds":0,"TotalDays":1.37159375E-06,"TotalHours":3.2918249999999996E-05,"TotalMilliseconds":118.5057,"TotalMinutes":0.001975095,"TotalSeconds":0.11850569999999999},"Name":"Should return $false when InstallationPolicy is incorrect","Result":"Passed","Context":"When the Test method is called\\Ensure = Present","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":301404,"Days":0,"Hours":0,"Milliseconds":30,"Minutes":0,"Seconds":0,"TotalDays":3.488472222222222E-07,"TotalHours":8.3723333333333329E-06,"TotalMilliseconds":30.140400000000003,"TotalMinutes":0.00050234,"TotalSeconds":0.030140399999999998},"Name":"Should return $false when SourceLocation is incorrect","Result":"Passed","Context":"When the Test method is called\\Ensure = Present","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":932290,"Days":0,"Hours":0,"Milliseconds":93,"Minutes":0,"Seconds":0,"TotalDays":1.0790393518518518E-06,"TotalHours":2.5896944444444445E-05,"TotalMilliseconds":93.229,"TotalMinutes":0.0015538166666666667,"TotalSeconds":0.093228999999999992},"Name":"Should return $true when PSRepository does exist","Result":"Passed","Context":"When the Test method is called\\Ensure = Present","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":599338,"Days":0,"Hours":0,"Milliseconds":59,"Minutes":0,"Seconds":0,"TotalDays":6.9367824074074076E-07,"TotalHours":1.6648277777777777E-05,"TotalMilliseconds":59.933800000000005,"TotalMinutes":0.00099889666666666673,"TotalSeconds":0.059933799999999995},"Name":"Should return $false when PSRepository does exist","Result":"Passed","Context":"When the Test method is called\\Ensure = Absent","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":2137078,"Days":0,"Hours":0,"Milliseconds":213,"Minutes":0,"Seconds":0,"TotalDays":2.4734699074074075E-06,"TotalHours":5.9363277777777777E-05,"TotalMilliseconds":213.70780000000002,"TotalMinutes":0.0035617966666666666,"TotalSeconds":0.2137078},"Name":"Should return $true when PSRepository does not exist","Result":"Passed","Context":"When the Test method is called\\Ensure = Absent","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":17329433,"Days":0,"Hours":0,"Milliseconds":732,"Minutes":0,"Seconds":1,"TotalDays":2.0057214120370368E-05,"TotalHours":0.00048137313888888889,"TotalMilliseconds":1732.9433000000001,"TotalMinutes":0.028882388333333335,"TotalSeconds":1.7329432999999999},"Name":"Should not throw","Result":"Passed","Context":"When the Set method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":41989735,"Days":0,"Hours":0,"Milliseconds":198,"Minutes":0,"Seconds":4,"TotalDays":4.859923032407407E-05,"TotalHours":0.0011663815277777778,"TotalMilliseconds":4198.9735,"TotalMinutes":0.069982891666666672,"TotalSeconds":4.1989735},"Name":"Should call Register-PSRepository if Ensure is Present and repository is absent","Result":"Passed","Context":"When the Set method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":7372621,"Days":0,"Hours":0,"Milliseconds":737,"Minutes":0,"Seconds":0,"TotalDays":8.5331261574074063E-06,"TotalHours":0.00020479502777777777,"TotalMilliseconds":737.2621,"TotalMinutes":0.012287701666666666,"TotalSeconds":0.73726209999999992},"Name":"Should call Set-PSRepository if InstallationPolicy is incorrect","Result":"Passed","Context":"When the Set method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":224780762,"Days":0,"Hours":0,"Milliseconds":478,"Minutes":0,"Seconds":22,"TotalDays":0.0002601629189814815,"TotalHours":0.006243910055555555,"TotalMilliseconds":22478.0762,"TotalMinutes":0.37463460333333332,"TotalSeconds":22.4780762},"Name":"Should call Unregister then Set-PSRepository if SourceLocation is incorrect","Result":"Passed","Context":"When the Set method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellRepository","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":687654,"Days":0,"Hours":0,"Milliseconds":68,"Minutes":0,"Seconds":0,"TotalDays":7.958958333333333E-07,"TotalHours":1.91015E-05,"TotalMilliseconds":68.7654,"TotalMinutes":0.00114609,"TotalSeconds":0.06876539999999999},"Name":"Should call Unregister-PSRepository if Ensure is Absent","Result":"Passed","Context":"When the Set method is called","StackTrace":""}],"CodeCoverage":{"NumberOfCommandsAnalyzed":87,"NumberOfFilesAnalyzed":1,"NumberOfCommandsExecuted":81,"NumberOfCommandsMissed":6,"MissedCommands":[{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":83,"Function":"Set","Command":"$PSBoundParameters.Remove(\"SourceLocation\")"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":84,"Function":"Set","Command":"$PSBoundParameters.Remove(\"Name\")"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":85,"Function":"Set","Command":"Register-PSRepository -Default @PSBoundParameters"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":100,"Function":"Set","Command":"$PSBoundParameters.Remove(\"SourceLocation\")"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":101,"Function":"Set","Command":"$PSBoundParameters.Remove(\"Name\")"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":102,"Function":"Set","Command":"Register-PSRepository -Default @PSBoundParameters"}],"HitCommands":[{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":51,"Function":"Get","Command":"$Repository = Get-PSRepository -Name $this.Name -ErrorAction SilentlyContinue"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":53,"Function":"Get","Command":"if ($Repository)\r\n {\r\n $this.Name = $Repository.Name\r\n $this.InstallationPolicy = $Repository.InstallationPolicy\r\n $this.SourceLocation = $Repository.SourceLocation\r\n }\r\n else\r\n {\r\n $this.Name = $null\r\n $this.InstallationPolicy = $null\r\n $this.SourceLocation = $null\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":55,"Function":"Get","Command":"$this.Name = $Repository.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":56,"Function":"Get","Command":"$this.InstallationPolicy = $Repository.InstallationPolicy"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":57,"Function":"Get","Command":"$this.SourceLocation = $Repository.SourceLocation"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":61,"Function":"Get","Command":"$this.Name = $null"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":62,"Function":"Get","Command":"$this.InstallationPolicy = $null"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":63,"Function":"Get","Command":"$this.SourceLocation = $null"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":66,"Function":"Get","Command":"return $this"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":71,"Function":"Set","Command":"$PSBoundParameters = $this.GetPSBoundParameters()"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":72,"Function":"Set","Command":"$Repository = Get-PSRepository -Name $this.Name -ErrorAction SilentlyContinue"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":73,"Function":"Set","Command":"$Count = ($Repository | Measure-Object).Count"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":73,"Function":"Set","Command":"$Repository"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":73,"Function":"Set","Command":"Measure-Object"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":75,"Function":"Set","Command":"if ($this.Ensure -eq [Ensure]::Present)\r\n {\r\n if ($Count -ne 1)\r\n {\r\n Write-Verbose -Message \"Registering repository [$($this.Name)].\"\r\n\r\n if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.SourceLocation -and $Repository -and ($Repository.SourceLocation -ne $this.SourceLocation))\r\n {\r\n Write-Verbose -Message \"Re-register repository [$($this.Name)] to have SourceLocation [$($this.SourceLocation)].\"\r\n\r\n Unregister-PSRepository -Name $Repository.Name\r\n\r\n if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.InstallationPolicy -and ($Repository.InstallationPolicy -ne $this.InstallationPolicy))\r\n {\r\n Write-Verbose -Message \"Configuring repository [$($this.Name)] to have InstallationPolicy [$($this.InstallationPolicy)].\"\r\n Set-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.Ensure -eq [Ensure]::Absent)\r\n {\r\n if ($Count -gt 0)\r\n {\r\n Write-Verbose -Message \"Unregister repository [$($this.Name)].\"\r\n\r\n Unregister-PSRepository $this.Name\r\n }\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":77,"Function":"Set","Command":"if ($Count -ne 1)\r\n {\r\n Write-Verbose -Message \"Registering repository [$($this.Name)].\"\r\n\r\n if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.SourceLocation -and $Repository -and ($Repository.SourceLocation -ne $this.SourceLocation))\r\n {\r\n Write-Verbose -Message \"Re-register repository [$($this.Name)] to have SourceLocation [$($this.SourceLocation)].\"\r\n\r\n Unregister-PSRepository -Name $Repository.Name\r\n\r\n if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.InstallationPolicy -and ($Repository.InstallationPolicy -ne $this.InstallationPolicy))\r\n {\r\n Write-Verbose -Message \"Configuring repository [$($this.Name)] to have InstallationPolicy [$($this.InstallationPolicy)].\"\r\n Set-PSRepository @PSBoundParameters\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":79,"Function":"Set","Command":"Write-Verbose -Message \"Registering repository [$($this.Name)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":79,"Function":"Set","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":81,"Function":"Set","Command":"if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":89,"Function":"Set","Command":"Register-PSRepository @PSBoundParameters"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":92,"Function":"Set","Command":"if ($Count -ne 1)\r\n {\r\n Write-Verbose -Message \"Registering repository [$($this.Name)].\"\r\n\r\n if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.SourceLocation -and $Repository -and ($Repository.SourceLocation -ne $this.SourceLocation))\r\n {\r\n Write-Verbose -Message \"Re-register repository [$($this.Name)] to have SourceLocation [$($this.SourceLocation)].\"\r\n\r\n Unregister-PSRepository -Name $Repository.Name\r\n\r\n if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.InstallationPolicy -and ($Repository.InstallationPolicy -ne $this.InstallationPolicy))\r\n {\r\n Write-Verbose -Message \"Configuring repository [$($this.Name)] to have InstallationPolicy [$($this.InstallationPolicy)].\"\r\n Set-PSRepository @PSBoundParameters\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":92,"Function":"Set","Command":"$Repository.SourceLocation -ne $this.SourceLocation"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":94,"Function":"Set","Command":"Write-Verbose -Message \"Re-register repository [$($this.Name)] to have SourceLocation [$($this.SourceLocation)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":94,"Function":"Set","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":94,"Function":"Set","Command":"$this.SourceLocation"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":96,"Function":"Set","Command":"Unregister-PSRepository -Name $Repository.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":98,"Function":"Set","Command":"if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":106,"Function":"Set","Command":"Register-PSRepository @PSBoundParameters"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":109,"Function":"Set","Command":"if ($Count -ne 1)\r\n {\r\n Write-Verbose -Message \"Registering repository [$($this.Name)].\"\r\n\r\n if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.SourceLocation -and $Repository -and ($Repository.SourceLocation -ne $this.SourceLocation))\r\n {\r\n Write-Verbose -Message \"Re-register repository [$($this.Name)] to have SourceLocation [$($this.SourceLocation)].\"\r\n\r\n Unregister-PSRepository -Name $Repository.Name\r\n\r\n if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.InstallationPolicy -and ($Repository.InstallationPolicy -ne $this.InstallationPolicy))\r\n {\r\n Write-Verbose -Message \"Configuring repository [$($this.Name)] to have InstallationPolicy [$($this.InstallationPolicy)].\"\r\n Set-PSRepository @PSBoundParameters\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":109,"Function":"Set","Command":"$Repository.InstallationPolicy -ne $this.InstallationPolicy"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":111,"Function":"Set","Command":"Write-Verbose -Message \"Configuring repository [$($this.Name)] to have InstallationPolicy [$($this.InstallationPolicy)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":111,"Function":"Set","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":111,"Function":"Set","Command":"$this.InstallationPolicy"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":112,"Function":"Set","Command":"Set-PSRepository @PSBoundParameters"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":115,"Function":"Set","Command":"if ($this.Ensure -eq [Ensure]::Present)\r\n {\r\n if ($Count -ne 1)\r\n {\r\n Write-Verbose -Message \"Registering repository [$($this.Name)].\"\r\n\r\n if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.SourceLocation -and $Repository -and ($Repository.SourceLocation -ne $this.SourceLocation))\r\n {\r\n Write-Verbose -Message \"Re-register repository [$($this.Name)] to have SourceLocation [$($this.SourceLocation)].\"\r\n\r\n Unregister-PSRepository -Name $Repository.Name\r\n\r\n if ($this.Name -eq \"PSGallery\")\r\n {\r\n $PSBoundParameters.Remove(\"SourceLocation\")\r\n $PSBoundParameters.Remove(\"Name\")\r\n Register-PSRepository -Default @PSBoundParameters\r\n }\r\n else\r\n {\r\n Register-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.InstallationPolicy -and ($Repository.InstallationPolicy -ne $this.InstallationPolicy))\r\n {\r\n Write-Verbose -Message \"Configuring repository [$($this.Name)] to have InstallationPolicy [$($this.InstallationPolicy)].\"\r\n Set-PSRepository @PSBoundParameters\r\n }\r\n }\r\n elseif ($this.Ensure -eq [Ensure]::Absent)\r\n {\r\n if ($Count -gt 0)\r\n {\r\n Write-Verbose -Message \"Unregister repository [$($this.Name)].\"\r\n\r\n Unregister-PSRepository $this.Name\r\n }\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":117,"Function":"Set","Command":"if ($Count -gt 0)\r\n {\r\n Write-Verbose -Message \"Unregister repository [$($this.Name)].\"\r\n\r\n Unregister-PSRepository $this.Name\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":119,"Function":"Set","Command":"Write-Verbose -Message \"Unregister repository [$($this.Name)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":119,"Function":"Set","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":121,"Function":"Set","Command":"Unregister-PSRepository $this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":128,"Function":"Test","Command":"$Repository = Get-PSRepository -Name $this.Name -ErrorAction SilentlyContinue"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":129,"Function":"Test","Command":"$Count = ($Repository | Measure-Object).Count"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":129,"Function":"Test","Command":"$Repository"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":129,"Function":"Test","Command":"Measure-Object"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":130,"Function":"Test","Command":"$Result = $true"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":132,"Function":"Test","Command":"if ($this.Ensure -eq [Ensure]::Present)\r\n {\r\n if ($Count -ne 1)\r\n {\r\n if (-not $this.SourceLocation -and ($this.Name -ne \"PSGallery\"))\r\n {\r\n throw \"SourceLocation is required when the PSRepository does not currently exist.\"\r\n }\r\n\r\n Write-Verbose -Message \"Expected a single instance of repository [$($this.Name)] but was [$($Count)].\"\r\n $Result = $false\r\n }\r\n\r\n if ($this.InstallationPolicy -and ($Repository.InstallationPolicy -ne $this.InstallationPolicy))\r\n {\r\n Write-Verbose -Message \"Expected repository [$($this.Name)] to have InstallationPolicy [$($this.InstallationPolicy)] but was [$($Repository.InstallationPolicy)].\"\r\n $Result = $false\r\n }\r\n\r\n if ($this.SourceLocation -and ($Repository.SourceLocation -ne $this.SourceLocation))\r\n {\r\n Write-Verbose -Message \"Expected repository [$($this.Name)] to have SourceLocation [$($this.SourceLocation)] but was [$($Repository.SourceLocation)].\"\r\n $Result = $false\r\n }\r\n }\r\n elseif ($this.Ensure -eq [Ensure]::Absent)\r\n {\r\n if ($Count -ne 0)\r\n {\r\n Write-Verbose -Message \"Expected no instance of repository [$($this.Name)] but was [$($Count)].\"\r\n $Result = $false\r\n }\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":134,"Function":"Test","Command":"if ($Count -ne 1)\r\n {\r\n if (-not $this.SourceLocation -and ($this.Name -ne \"PSGallery\"))\r\n {\r\n throw \"SourceLocation is required when the PSRepository does not currently exist.\"\r\n }\r\n\r\n Write-Verbose -Message \"Expected a single instance of repository [$($this.Name)] but was [$($Count)].\"\r\n $Result = $false\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":136,"Function":"Test","Command":"if (-not $this.SourceLocation -and ($this.Name -ne \"PSGallery\"))\r\n {\r\n throw \"SourceLocation is required when the PSRepository does not currently exist.\"\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":136,"Function":"Test","Command":"$this.Name -ne \"PSGallery\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":138,"Function":"Test","Command":"throw \"SourceLocation is required when the PSRepository does not currently exist.\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":141,"Function":"Test","Command":"Write-Verbose -Message \"Expected a single instance of repository [$($this.Name)] but was [$($Count)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":141,"Function":"Test","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":141,"Function":"Test","Command":"$Count"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":142,"Function":"Test","Command":"$Result = $false"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":145,"Function":"Test","Command":"if ($this.InstallationPolicy -and ($Repository.InstallationPolicy -ne $this.InstallationPolicy))\r\n {\r\n Write-Verbose -Message \"Expected repository [$($this.Name)] to have InstallationPolicy [$($this.InstallationPolicy)] but was [$($Repository.InstallationPolicy)].\"\r\n $Result = $false\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":145,"Function":"Test","Command":"$Repository.InstallationPolicy -ne $this.InstallationPolicy"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":147,"Function":"Test","Command":"Write-Verbose -Message \"Expected repository [$($this.Name)] to have InstallationPolicy [$($this.InstallationPolicy)] but was [$($Repository.InstallationPolicy)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":147,"Function":"Test","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":147,"Function":"Test","Command":"$this.InstallationPolicy"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":147,"Function":"Test","Command":"$Repository.InstallationPolicy"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":148,"Function":"Test","Command":"$Result = $false"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":151,"Function":"Test","Command":"if ($this.SourceLocation -and ($Repository.SourceLocation -ne $this.SourceLocation))\r\n {\r\n Write-Verbose -Message \"Expected repository [$($this.Name)] to have SourceLocation [$($this.SourceLocation)] but was [$($Repository.SourceLocation)].\"\r\n $Result = $false\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":151,"Function":"Test","Command":"$Repository.SourceLocation -ne $this.SourceLocation"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":153,"Function":"Test","Command":"Write-Verbose -Message \"Expected repository [$($this.Name)] to have SourceLocation [$($this.SourceLocation)] but was [$($Repository.SourceLocation)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":153,"Function":"Test","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":153,"Function":"Test","Command":"$this.SourceLocation"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":153,"Function":"Test","Command":"$Repository.SourceLocation"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":154,"Function":"Test","Command":"$Result = $false"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":157,"Function":"Test","Command":"if ($this.Ensure -eq [Ensure]::Present)\r\n {\r\n if ($Count -ne 1)\r\n {\r\n if (-not $this.SourceLocation -and ($this.Name -ne \"PSGallery\"))\r\n {\r\n throw \"SourceLocation is required when the PSRepository does not currently exist.\"\r\n }\r\n\r\n Write-Verbose -Message \"Expected a single instance of repository [$($this.Name)] but was [$($Count)].\"\r\n $Result = $false\r\n }\r\n\r\n if ($this.InstallationPolicy -and ($Repository.InstallationPolicy -ne $this.InstallationPolicy))\r\n {\r\n Write-Verbose -Message \"Expected repository [$($this.Name)] to have InstallationPolicy [$($this.InstallationPolicy)] but was [$($Repository.InstallationPolicy)].\"\r\n $Result = $false\r\n }\r\n\r\n if ($this.SourceLocation -and ($Repository.SourceLocation -ne $this.SourceLocation))\r\n {\r\n Write-Verbose -Message \"Expected repository [$($this.Name)] to have SourceLocation [$($this.SourceLocation)] but was [$($Repository.SourceLocation)].\"\r\n $Result = $false\r\n }\r\n }\r\n elseif ($this.Ensure -eq [Ensure]::Absent)\r\n {\r\n if ($Count -ne 0)\r\n {\r\n Write-Verbose -Message \"Expected no instance of repository [$($this.Name)] but was [$($Count)].\"\r\n $Result = $false\r\n }\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":159,"Function":"Test","Command":"if ($Count -ne 0)\r\n {\r\n Write-Verbose -Message \"Expected no instance of repository [$($this.Name)] but was [$($Count)].\"\r\n $Result = $false\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":161,"Function":"Test","Command":"Write-Verbose -Message \"Expected no instance of repository [$($this.Name)] but was [$($Count)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":161,"Function":"Test","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":161,"Function":"Test","Command":"$Count"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":162,"Function":"Test","Command":"$Result = $false"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":166,"Function":"Test","Command":"return $Result"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":172,"Function":"GetPSBoundParameters","Command":"$PSBoundParameters = @{\r\n Name = $this.Name;\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":173,"Function":"GetPSBoundParameters","Command":"Name = $this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":176,"Function":"GetPSBoundParameters","Command":"if ($this.SourceLocation)\r\n {\r\n $PSBoundParameters[\"SourceLocation\"] = $this.SourceLocation\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":178,"Function":"GetPSBoundParameters","Command":"$PSBoundParameters[\"SourceLocation\"] = $this.SourceLocation"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":181,"Function":"GetPSBoundParameters","Command":"if ($this.InstallationPolicy)\r\n {\r\n $PSBoundParameters[\"InstallationPolicy\"] = $this.InstallationPolicy\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":183,"Function":"GetPSBoundParameters","Command":"$PSBoundParameters[\"InstallationPolicy\"] = $this.InstallationPolicy"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1","Line":186,"Function":"GetPSBoundParameters","Command":"return $PSBoundParameters"}],"AnalyzedFiles":["C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellRepository\\PowershellRepository.psm1"]}}