示例#1
0
 /// <summary>
 /// Handles the Click event of the toolStripButtonPlaintypedview control. Example 5.18. pg59.
 /// </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 toolStripButtonPlaintypedview_Click(object sender, EventArgs e)
 {
     bindingSourceCustomerList.DataSource = CustomerQueries.GetCustomerViewTypedView(MaxNumberOfItemsToReturn);
 }
 public IEnumerable Query()
 {
     return(CustomerQueries.GetCustomerViewTypedView(5));
 }
        public void GetCustomerViewTypedViewTest()
        {
            var actual = CustomerQueries.GetCustomerViewTypedView(MaxNumberOfItemsToReturn);

            Assert.AreEqual(MaxNumberOfItemsToReturn, actual.Count);
        }