コード例 #1
0
        public void CustomerAccess_GetCustomersByGlossary_TestMethod(string name, string glossary, int Id)
        {
            SqlConnection connection = ConnectionManager.Connection;

            connection.Open();
            CustomerAccess.FillDictionary();
            CustomerAccess.FillCustomerData();
            CustomerAccess.GetCustomersByGlossary(name, glossary, Id);
            DataSet dataSet = (DataSet)CustomerAccess.GetData();

            Assert.IsTrue(dataSet.Tables["Customer"].Rows.Count > 0);
        }
コード例 #2
0
        public override object Execute()
        {
            foreach (NewCriteria <int> criteria in _criterias)
            {
                if (criteria != null)
                {
                    CustomerAccess.GetCustomersByGlossary("Customer", criteria.Criteria, criteria.Values[0]);
                }
                break;
            }

            return(CustomerAccess.GetData());
        }
コード例 #3
0
 public object FindByGlossary(int id, string name)
 {
     CustomerAccess.GetCustomersByGlossary(name, id);
     return(CustomerAccess.GetData());
 }