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); }
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()); }
public object FindByGlossary(int id, string name) { CustomerAccess.GetCustomersByGlossary(name, id); return(CustomerAccess.GetData()); }