public void Actions_Delete() { using (var context = MockContext.Start(this.GetType())) { var SecurityInsightsClient = TestHelper.GetSecurityInsightsClient(context); var RuleId = Guid.NewGuid().ToString(); var Rule = AlertRulesUtils.GetDefaultAlertRuleProperties(); SecurityInsightsClient.AlertRules.CreateOrUpdate(TestHelper.ResourceGroup, TestHelper.WorkspaceName, RuleId, Rule); var ActionId = Guid.NewGuid().ToString(); var Action = AlertRulesUtils.GetDefaultAlertRuleActionProperties(); SecurityInsightsClient.Actions.CreateOrUpdate(TestHelper.ResourceGroup, TestHelper.WorkspaceName, RuleId, ActionId, Action); SecurityInsightsClient.Actions.Delete(TestHelper.ResourceGroup, TestHelper.WorkspaceName, RuleId, ActionId); SecurityInsightsClient.AlertRules.Delete(TestHelper.ResourceGroup, TestHelper.WorkspaceName, RuleId); } }