protected void AddRuleData(HttpRequestUnitTestRule rule, KeyValueRowModel row, HttpRequestUnitTestRuleDataType type) { var data = new HttpRequestUnitTestRuleData(); data.Id = row.HasId ? new Guid(row.Id) : Guid.NewGuid(); data.Key = row.Key; data.Value = row.Value; data.Type = type; data.Rule = rule; data.RuleId = rule.Id; rule.Datas.Add(data); }
protected void AddRuleData(HttpRequestUnitTestRule rule, KeyValueRowModel row, HttpRequestUnitTestRuleDataType type) { var data = new HttpRequestUnitTestRuleData { Id = Guid.NewGuid(), Key = row.Key, Value = row.Value, Type = type, Rule = rule, RuleId = rule.Id }; rule.Datas.Add(data); }