Ejemplo n.º 1
0
 /// <summary>
 /// Handles the Click event of the toolStripButtonLinqBarf 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 toolStripButtonLinqBarf_Click(object sender, EventArgs e)
 {
     bindingSourceCustomerList.DataSource = CustomerQueries.GetCustomerListAnonymousLinq(MaxNumberOfItemsToReturn);
 }
        public void GetCustomerListAnonymousLinqTest()
        {
            var customerListAnonymousLinq = CustomerQueries.GetCustomerListAnonymousLinq(MaxNumberOfItemsToReturn);

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