public override void ApplyValues(FieldDictionary fields) { this.ID = fields.GetValue <int>("TestFlowID", -1); this.Name = fields.GetValue <string>("TestFlowName"); this.DateCreated = fields.GetValue <string>("DateCreated", DateTime.MinValue); this.DateModified = fields.GetValue <string>("DateModified", DateTime.MinValue); }
public override void ApplyValues(FieldDictionary fields) { this.ID = fields.GetValue <int>("TestID", -1); this.TestType = fields.GetThing <TestType>("TestTypeID"); this.Status = fields.GetThing <TestStatus>("Status", TestStatus.Pending); this.Metadata.Definition = fields.GetValue <string>("Metadata"); this.DateCreated = fields.GetValue <DateTime>("DateCreated", DateTime.MinValue); this.DateUpdated = fields.GetValue <DateTime>("DateUpdated", DateTime.MinValue); }