private string Step1_CreateNewReques() { // 1. Request a New Posting position //Arrange NewPosition request = new NewPosition() { Operate = "New", SchoolYear = _schoolYear, PositionID = "0", PositionType = "LTO", SchoolCode = _schoolCode, UserID = "mif" }; //Act string newid = RequestPostingExe.Add(request); int x = Int32.Parse(newid); _requestId = Int32.Parse(newid); //Assert Assert.IsNotNull(newid, $"Request ID { newid } "); return("Successfully"); }
public string AddTest(object parameter) { string result = RequestPostingExe.Add(parameter); return(result); // TODO: add assertions to method RequestPostingExeTest.AddTest(Object) }
private int getNewRequestID(string positionType) { request.PositionType = positionType; string newid = RequestPostingExe.Add(request); int x = Int32.Parse(newid); return(x); }
private int getNewRequestID(string positionType) { NewPosition request = new NewPosition() { Operate = "New", SchoolYear = "20192020", PositionID = "0", PositionType = "LTO", SchoolCode = "0549", UserID = "mif" }; request.PositionType = positionType; string newid = RequestPostingExe.Add(request); int x = Int32.Parse(newid); return(x); }
public void AddTest_Return_NewRequesID() { //Arrange string action = "New"; request.Operate = action; request.PositionID = "0"; //Act string newid = RequestPostingExe.Add(request); int x = Int32.Parse(newid); int result = x; //Assert // Assert.AreEqual(expect, result, $" Posting position List { result}"); Assert.IsNotNull(result, $" Request Posting position List { result}"); }