mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Rename cmdlets
This commit is contained in:
@@ -8,14 +8,14 @@ using System.Management.Automation;
|
||||
|
||||
namespace Microsoft.PowerShell.Commands.Omi
|
||||
{
|
||||
#region Set-DscLocalConfiguration
|
||||
#region Set-DscLocalConfigurationManager
|
||||
|
||||
/// <summary>
|
||||
/// implementation for the Set-DscLocalConfiguration command
|
||||
/// </summary>
|
||||
[Cmdlet(VerbsCommon.Set, "DscLocalConfiguration" )]
|
||||
[Cmdlet(VerbsCommon.Set, "DscLocalConfigurationManager" )]
|
||||
[OutputType(typeof(object))]
|
||||
public sealed class SetDscLocalConfigurationCommand : Cmdlet
|
||||
public sealed class SetDscLocalConfigurationManagerCommand : Cmdlet
|
||||
{
|
||||
#region parameters
|
||||
|
||||
@@ -85,14 +85,14 @@ namespace Microsoft.PowerShell.Commands.Omi
|
||||
|
||||
#endregion
|
||||
|
||||
#region Get-DscConfiguration
|
||||
#region Get-DscLocalConfigurationManager
|
||||
|
||||
/// <summary>
|
||||
/// implementation for the Get-DscLocalConfiguration command
|
||||
/// implementation for the Get-DscLocalConfigurationManager command
|
||||
/// </summary>
|
||||
[Cmdlet(VerbsCommon.Get, "DscLocalConfiguration" )]
|
||||
[Cmdlet(VerbsCommon.Get, "DscLocalConfigurationManager" )]
|
||||
[OutputType(typeof(object))]
|
||||
public sealed class GetDscLocalConfigurationCommand : Cmdlet
|
||||
public sealed class GetDscLocalConfigurationManagerCommand : Cmdlet
|
||||
{
|
||||
#region methods
|
||||
|
||||
|
||||
@@ -22,13 +22,13 @@ Describe "DscConfiguration" {
|
||||
}
|
||||
|
||||
It "Should set Meta MOF file properly" {
|
||||
$s = Set-DscLocalConfiguration -ConfigurationMof $mofMeta |
|
||||
$s = Set-DscLocalConfigurationManager -ConfigurationMof $mofMeta |
|
||||
Where-Object {$_.NAME -eq "ReturnValue"}
|
||||
$s.VALUE | Should Be "0"
|
||||
}
|
||||
|
||||
It "Should get DSC local configuration successfully" {
|
||||
$s = Get-DscLocalConfiguration | Where-Object {$_.NAME -eq "ReturnValue"}
|
||||
$s = Get-DscLocalConfigurationManager | Where-Object {$_.NAME -eq "ReturnValue"}
|
||||
$s.VALUE | Should Be "0"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user