/// <summary>
 /// Initializes a new instance of the PSAlertRule class.
 /// </summary>
 /// <param name="ruleSpec"></param>
 public PSAlertRuleNoDetails(RuleResource ruleSpec)
 {
     this.Id = ruleSpec.Id;
     this.Location = ruleSpec.Location;
     this.Name = ruleSpec.Name;
     this.Properties = ruleSpec.Properties;
     this.Tags = ruleSpec.Tags;
 }
 /// <summary>
 /// Initializes a new instance of the PSAlertRule class.
 /// </summary>
 /// <param name="ruleSpec"></param>
 public PSAlertRule(RuleResource ruleSpec)
 {
     this.Id = ruleSpec.Id;
     this.Location = ruleSpec.Location;
     this.Name = ruleSpec.Name;
     this.Properties = new PSAlertRuleProperty(ruleSpec.Properties);
     this.Tags = new PSDictionaryElement(ruleSpec.Tags);
 }
 private void AreEqual(RuleResource exp, RuleResource act)
 {
     if (exp != null)
     {
         Assert.Equal(exp.Id, act.Id);
         Assert.Equal(exp.Location, act.Location);
         Assert.Equal(exp.Name, act.Name);
         AreEqual(exp.Tags, act.Tags);
         AreEqual(exp.Properties, act.Properties);
     }
 }