public static IEnumerable <AlertRuleResource> InitializeRuleListResponse() { AlertRuleResource ruleResource = Utilities.CreateFakeRuleResource(); return(new List <AlertRuleResource>() { ruleResource }); }
public static RuleGetResponse InitializeRuleGetResponse() { // This is effectively testing the conversion EventData -> PSEventData internally in the execution of the cmdlet RuleResource ruleResource = Utilities.CreateFakeRuleResource(); return(new RuleGetResponse() { Id = ruleResource.Id, Location = ruleResource.Location, Name = ruleResource.Name, Properties = ruleResource.Properties, Tags = ruleResource.Tags, RequestId = Guid.NewGuid().ToString(), StatusCode = HttpStatusCode.OK }); }
public static RuleListResponse InitializeRuleListResponse() { // This is effectively testing the conversion EventData -> PSEventData internally in the execution of the cmdlet RuleResource ruleResource = Utilities.CreateFakeRuleResource(); return(new RuleListResponse() { RuleResourceCollection = new RuleResourceCollection() { Value = new List <RuleResource>() { ruleResource }, }, RequestId = Guid.NewGuid().ToString(), StatusCode = HttpStatusCode.OK }); }
public static AlertRuleResource InitializeRuleGetResponse() { return(Utilities.CreateFakeRuleResource()); }