public void SaveSchoolTestInvalidData() { SchoolsInterfaceApi schApi = new SchoolsInterfaceApi(); School sch = new School(); Result result = schApi.SaveSchool(sch); Assert.AreEqual(result.StatusCode, Globals.FAILURE_STATUS_CODE); }
public void SaveSchoolTest() { SchoolsInterfaceApi schApi = new SchoolsInterfaceApi(); School sch = new School(); sch.SchoolName = "TEST SCHOOl"; sch.ModifiedBy = "admin"; sch.Password = "******"; sch.SchoolCode = "TEST_SCHOOL"; sch.SchoolEmail = "*****@*****.**"; sch.SchoolID = ""; sch.SchoolLocation = "pegasus tech"; sch.SchoolPhone = "0785975800"; sch.UnebCentreNumber = "123444"; sch.VendorCode = "TEST"; Result result = schApi.SaveSchool(sch); Assert.AreEqual(result.StatusCode, Globals.SUCCESS_STATUS_CODE); }