public void TestRetrieveAllArt() { Console.WriteLine("TestRetrieveAll called"); List <Art> aCollection = ctrArt.RetrieveAll(); Assert.IsNotNull(aCollection, "aCollection is null"); Console.WriteLine(aCollection.Count); }
private void loadArtPieces() { try { dgvAtrList.DataSource = ctrArt.RetrieveAll(); } catch { } }
public Budgivning(Auction au) { InitializeComponent(); lblHeader.Text = "Auktion den " + au.Date; currentAuction = au; ctrArt = new CtrArt(); ctrAuc = new CtrAuction(); dgvArts.DataSource = ctrArt.RetrieveAll(au.Id); }
private void getArtData() { CtrArt ctrArt = new CtrArt(); lbxAvailableArt.DataSource = ctrArt.RetrieveAll().Where(x => x.AuctionId == null).ToList(); }