private void button2_Click(object sender, EventArgs e) { treeView1.Nodes.Clear(); var obj = PKHelper.CreateObjectsByKey <MainObj>(textBox1.Text).FirstOrDefault() as DataObject; AuditHelper.GetObjForDate(dateTimePicker1.Value, ref obj, null, false); treeView1.Nodes.Add(new TreeNode($"Obj - {obj.__PrimaryKey} on date {dateTimePicker1.Value:G}", CreateTreeNodeForDataObject(obj).ToArray())); }
public void CreateDataObjectsСравнениеТипа01() { Assert.Equal(typeof(DataObjectWithKeyGuid), PKHelper.CreateObjectsByKey <DataObjectWithKeyGuid>(kg1).First().GetType()); }
public void CreateDataObjectsСравнениеКоличества03() { Assert.Equal(1, PKHelper.CreateObjectsByKey <DataObjectForTest>(kg1, kg1).Length); }
public void CreateDataObjectsСравнениеТипа00() { Assert.Equal(typeof(DataObjectForTest), PKHelper.CreateObjectsByKey <DataObjectForTest>(kg1).First().GetType()); }
public void CreateDataObjectsСравнениеКоличества00() { Assert.Equal(0, PKHelper.CreateObjectsByKey <DataObjectForTest>("123").Length); }