Rename cmdlets

This commit is contained in:
George Fleming
2016-01-05 15:16:10 -08:00
parent ef6f5d06e5
commit 6a40891df2
2 changed files with 9 additions and 9 deletions
@@ -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"
}