private AutoscaleProfile CreateAutoscaleProfile(List <ScaleRule> autoscaleRules = null, bool fixedDate = true) { var autoscaleProfileCmd = new NewAutoscaleProfileCommandTests(); autoscaleProfileCmd.InitializeAutoscaleProfile(autoscaleRules); if (fixedDate) { autoscaleProfileCmd.InitializeForFixedDate(); } else { autoscaleProfileCmd.InitializeForRecurrentSchedule(); } return(autoscaleProfileCmd.Cmdlet.CreateSettingProfile()); }
private AutoscaleProfile CreateAutoscaleProfile(List<ScaleRule> autoscaleRules = null, bool fixedDate = true) { var autoscaleProfileCmd = new NewAutoscaleProfileCommandTests(); autoscaleProfileCmd.InitializeAutoscaleProfile(autoscaleRules); if (fixedDate) { autoscaleProfileCmd.InitializeForFixedDate(); } else { autoscaleProfileCmd.InitializeForRecurrentSchedule(); } return autoscaleProfileCmd.Cmdlet.CreateSettingProfile(); }