Beispiel #1
0
        public void Cleanup()
        {
            SupplierLoginManager myMan = new SupplierLoginManager();

            ItemListingAccessor.DeleteItemListingTestItem(itemListingToTest);
            testSupp.SupplierID = modSupp.SupplierID;
            testLog             = myMan.RetrieveSupplierLogin("Password#1", "Test");
            TestCleanupAccessor.DeleteTestSupplierLogin(testLog);
            TestCleanupAccessor.DeleteTestSupplier(testSupp);
        }
Beispiel #2
0
        public void ArchiveSupplierWorkingTest() // ☑
        {
            Setup("EditSupWorking");
            SupplierMang.AddANewSupplier(testSupplier, "Test");
            SupplierLoginManager newMan = new SupplierLoginManager();

            findTestItemDetails();

            Assert.AreEqual(SupplierMang.ArchiveSupplier(testSupplier), SupplierResult.Success);
            SupplierLogin fake = new SupplierLogin();

            fake.UserName = "******";
            TestCleanupAccessor.DeleteTestSupplierLogin(fake);
            TestCleanupAccessor.DeleteTestSupplier(testSupplier);
        }
Beispiel #3
0
        public void EditSupplierworkingTest() // ☑
        {
            Setup("EditSupWorking");
            SupplierMang.AddANewSupplier(testSupplier, "Test");
            SupplierLoginManager newMan = new SupplierLoginManager();

            findTestItemDetails();
            Supplier testSupplier2 = test2();

            Assert.AreEqual(SupplierMang.EditSupplier(testSupplier, testSupplier2), SupplierResult.Success);

            testLog = newMan.RetrieveSupplierLogin("Password#1", "Test");
            TestCleanupAccessor.DeleteTestSupplierLogin(testLog);
            TestCleanupAccessor.DeleteTestSupplier(testSupplier);
        }