/// <summary> /// this function will get the order from the contract market place and load it to the data grid /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void GetOrder_Click(object sender, RoutedEventArgs e) { cmp = new CmpDal(); crt = new List <Contract>(); crt = cmp.GetContracts(); contractData.ItemsSource = crt; }
public void TestGetProducts() { CmpDal dal = new CmpDal(); List <Contract> contracts = dal.GetContracts(); Assert.IsTrue(contracts.Count > 0); }