Example #1
0
        public void EditSupplierApplicationWorkingTest() // ☑
        {
            Setup("EditSupAppWorking");
            SupplierApplication testSupplierApp2 = testSupplierApp;

            testSupplierApp2.CompanyName        = "Awsomest Tours";
            testSupplierApp2.CompanyDescription = "tours of epicness";
            testSupplierApp2.LastName           = "blabla";
            testSupplierApp2.Zip              = "50229";
            testSupplierApp2.EmailAddress     = "*****@*****.**";
            testSupplierApp2.Address2         = "";
            testSupplierApp.ApplicationDate   = new DateTime(2005, 2, 2);
            testSupplierApp.ApplicationStatus = "pending";
            testSupplierApp.LastStatusDate    = new DateTime(2005, 2, 1);
            testSupplierApp.Remarks           = "";

            SupplierMang.EditSupplierApplication(testSupplierApp, testSupplierApp2);
            testSupplierApp = testSupplierApp2;
            TestCleanupAccessor.DeleteTestSupplier(testSupplier);
        }
Example #2
0
        public void DeleteItemListing_ValidItemListing()
        {
            int expected = 1;

            setup();

            SupplierAccessor.AddSupplier(testSupp, "Test", "Password#1");
            modSupp = getSupplierListCompName(suppList);
            itemListingToTest.SupplierID = modSupp.SupplierID;
            ItemListingAccessor.AddItemListing(itemListingToTest);
            itemListingToTest = getItemListingTestObject(itemList);

            int actual = ItemListingAccessor.DeleteItemListing(itemListingToTest);

            ItemListingAccessor.DeleteItemListingTestItem(itemListingToTest);
            testSupp.SupplierID = modSupp.SupplierID;
            testLog             = sLA.RetrieveSupplierLogin("Password#1", "Test");
            SupplierLoginAccessor.DeleteTestSupplierLogin(testLog);
            TestCleanupAccessor.DeleteTestSupplier(testSupp);

            Assert.AreEqual(expected, actual);
        }