public void AddItemListing_Success()
        {
            Setup();
            SupplierManager mySupMan = new SupplierManager();
            mySupMan.AddANewSupplier(testSupp, "Test");
            modSupp = getSupplierListCompName(suppList);
            itemListingToTest.SupplierID = modSupp.SupplierID;

            listResult actual = pMgr.AddItemListing(itemListingToTest);

            Cleanup();

            Assert.AreEqual(listResult.Success, actual);
        }
        public void ArchiveItemListing_ValidItemListing()
        {
            Setup();
            SupplierManager myMan = new SupplierManager();
            ProductManager otherMan = new ProductManager();
            myMan.AddANewSupplier(testSupp, "Test");
            modSupp = getSupplierListCompName(suppList);
            itemListingToTest.SupplierID = modSupp.SupplierID;
            otherMan.AddItemListing(itemListingToTest);
            itemListingToTest = getItemListingTestObject(itemList);
            itemListingToTest.CurrentNumGuests = 0;
            listResult actual = pMgr.ArchiveItemListing(itemListingToTest);

            Assert.AreEqual(listResult.Success, actual);

            Cleanup();
        }
 public void EditSetup()
 {
     SupplierManager mySupMan = new SupplierManager();
     mySupMan.AddANewSupplier(testSupp, "Test");
     modSupp = getSupplierListCompName(suppList);
     itemListingToEdit.SupplierID = modSupp.SupplierID;
     ItemListingAccessor.AddItemListing(itemListingToTest);
     itemListingToTest = getItemListingTestObject(itemList);
     itemListingToEdit.SupplierID = modSupp.SupplierID;
 }