public string OperationTest(string action, object parameter)
        {
            string result = RequestPostingExe.Operation(action, parameter);

            return(result);
            // TODO: add assertions to method RequestPostingExeTest.OperationTest(String, Object)
        }
Beispiel #2
0
        public void OperationTest_DeleteRequesPosting_return_Secussfully()
        {
            //Arrange
            string action = "Delete";

            requestposition.UserID     = "mif";
            requestposition.Operate    = action;
            requestposition.SchoolYear = "20192020";
            requestposition.SchoolCode = "0549";
            requestposition.PositionID = getNewRequestID("LTO");

            //Act
            string expect = "Successfully";
            string result = RequestPostingExe.Operation(action, requestposition);

            //Assert
            Assert.AreEqual(expect, result, $" Cancel a request posting by schoool principal { result} .");
        }