public string RequestSchoolTest(object parameter) { string result = RequestPostingExe.RequestSchool(parameter); return(result); // TODO: add assertions to method RequestPostingExeTest.RequestSchoolTest(Object) }
public void RequestSchoolTest() { //Arrange string action = "RequestSchool"; requestposition.UserID = "mif"; requestposition.Operate = action; requestposition.SchoolYear = "20192020"; requestposition.SchoolCode = "0549"; requestposition.PositionID = getNewRequestID("LTO"); //act string expect = "0549"; string schoolCodeAndName = RequestPostingExe.RequestSchool(requestposition); string result = schoolCodeAndName.Substring(0, 4); //Assert Assert.AreEqual(expect, result, $"request School by schoool principal { schoolCodeAndName} ."); }