Beispiel #1
0
        public void AddSupplierApplicationNullTest() // ☑
        {
            SupplierApplication SupplierAppNull = null;

            SupplierMang.AddASupplierApplication(SupplierAppNull);
            TestCleanupAccessor.deleteTestApplication();
        }
Beispiel #2
0
 public void AddSupplierApplicationWorkingTest() // ☑
 {
     Setup("AddAppWorkingTest");
     SupplierMang.AddASupplierApplication(testSupplierApp);
     TestCleanupAccessor.DeleteTestSupplier(testSupplier);
     TestCleanupAccessor.deleteTestApplication();
 }
Beispiel #3
0
        public void AddSupplierApplicationEmptyTest() // ☑
        {
            SupplierApplication SupplierAppEmpty = new SupplierApplication();

            SupplierMang.AddASupplierApplication(SupplierAppEmpty);
            TestCleanupAccessor.deleteTestApplication();
        }
Beispiel #4
0
        public void RetrieveSupplierApplicationListTest() // ☑
        {
            List <SupplierApplication> suppliersApps = SupplierMang.RetrieveSupplierApplicationList();

            Assert.IsNotNull(suppliersApps);
            TestCleanupAccessor.deleteTestApplication();
        }
Beispiel #5
0
 public void RetrieveSupplierApplicationWorkingTest() // ☑
 {
     supplierAppID            = "100";
     testSupplierAppRetrieval = SupplierMang.RetrieveSupplierApplication(supplierAppID);
     Assert.IsNotNull(testSupplierAppRetrieval);
     TestCleanupAccessor.deleteTestApplication();
 }
Beispiel #6
0
 public void RetrieveSupplierApplicationNullIDTest() // ☑
 {
     supplierAppID            = null;
     testSupplierAppRetrieval = SupplierMang.RetrieveSupplierApplication(supplierAppID);
     Assert.IsNull(testSupplierAppRetrieval);
     TestCleanupAccessor.deleteTestApplication();
 }
Beispiel #7
0
        public void AddSupplierApplicationPartialTest() // ☐
        {
            SupplierApplication testSupplierApp2 = new SupplierApplication();

            testSupplierApp2.ApplicationDate    = new DateTime();
            testSupplierApp2.CompanyDescription = "test";
            testSupplierApp2.CompanyName        = "name";
            testSupplierApp2.PhoneNumber        = "234-234-2341";
            testSupplierApp2.FirstName          = "test";
            SupplierMang.AddASupplierApplication(testSupplierApp2);
            TestCleanupAccessor.deleteTestApplication();
        }