public void GetCustomerListLinqedTypedListTest()
        {
            var actual = CustomerQueries.GetCustomerListLinqedTypedList(MaxNumberOfItemsToReturn);

            Assert.AreEqual(MaxNumberOfItemsToReturn, actual.ToList().Count());
            Assert.AreEqual(MaxNumberOfItemsToReturn, actual.Count());
        }
示例#2
0
 /// <summary>
 /// Handles the Click event of the toolStripButtonLinq control.
 /// </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 toolStripButtonLinq_Click(object sender, EventArgs e)
 {
     bindingSourceCustomerList.DataSource = CustomerQueries.GetCustomerListLinqedTypedList(MaxNumberOfItemsToReturn);
 }