public void TestRetriveByIdArt()
        {
            Art aTemp = ctrArt.RetrieveById(27);

            Assert.AreEqual(1020, aTemp.Number);
            Assert.IsNotNull(aTemp, "is found");
        }
Ejemplo n.º 2
0
        public void TestCreateAndInsertAuction()
        {
            Art        art     = artCtr.RetrieveById(27);
            List <Art> artList = new List <Art>();

            artList.Add(art);

            Auction auction = ctrAuction.CreateAuction(DateTime.Now, "Test description", artList);

            Assert.IsNotNull(auction.Date, "Date created");
            Assert.IsTrue(0 < auction.Description.Length, "Description is set");
            Assert.IsNotNull(auction.Arts, "Art list is set");
            ctrAuction.DeleteAuction(auction);
        }