public IEnumerable Query() { return(CustomerQueries.GetCustomerViewRelatedCollection()); }
/// <summary> /// Handles the Click event of the toolStripButtonViewAsEntity control. Example 5.27 pg63. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void toolStripButtonViewAsEntity_Click(object sender, EventArgs e) { bindingSourceCustomerList.DataSource = CustomerQueries.GetCustomerViewRelatedCollection(); }
public void GetCustomerViewRelatedCollectionTest() { var actual = CustomerQueries.GetCustomerViewRelatedCollection(); Assert.AreEqual(46117, actual.SalesOrderHeader[0].SalesOrderID); }