public void GetRootTest() { var root1 = MyRoot.GetRoot(1); Assert.AreEqual(1, root1.Id); Assert.AreEqual("Jonny", root1.Name); var root2 = MyRoot.GetRoot(2); Assert.AreEqual(2, root2.Id); Assert.AreEqual("Matt", root2.Name); }
public void GetRootThrowsDataPortalException() { var root1 = MyRoot.GetRoot(999); }
private void MyRootForm_Load(object sender, System.EventArgs e) { rootBindingSource.Rebind(MyRoot.GetRoot(5)); }
private void MyRootForm_Load(object sender, EventArgs e) { RootObject = MyRoot.GetRoot(); Rebind(); }