public List <PositionListPublish> PublishPositionsTest(object parameter) { List <PositionListPublish> result = PositionListCheckExe.PublishPositions(parameter); return(result); // TODO: add assertions to method PositionListCheckExeTest.PublishPositionsTest(Object) }
public List <ApplicantListSelect> SelectCandidatesTest(object parameter) { List <ApplicantListSelect> result = PositionListCheckExe.SelectCandidates(parameter); return(result); // TODO: add assertions to method PositionListCheckExeTest.SelectCandidatesTest(Object) }
public List <CandidateList> InterviewCandidatesTest(object parameter) { List <CandidateList> result = PositionListCheckExe.InterviewCandidates(parameter); return(result); // TODO: add assertions to method PositionListCheckExeTest.InterviewCandidatesTest(Object) }
public string ConvertFunctionTableToStringTest(object parameter) { string result = PositionListCheckExe.ConvertFunctionTableToString(parameter); return(result); // TODO: add assertions to method PositionListCheckExeTest.ConvertFunctionTableToStringTest(Object) }
public List <GeneralCheck> ConvertFunctionStringToTableTest(object parameter) { List <GeneralCheck> result = PositionListCheckExe.ConvertFunctionStringToTable(parameter); return(result); // TODO: add assertions to method PositionListCheckExeTest.ConvertFunctionStringToTableTest(Object) }
public string SpNameTest(string action) { string result = PositionListCheckExe.SpName(action); return(result); // TODO: add assertions to method PositionListCheckExeTest.SpNameTest(String) }
public List <PositionListApplying> AvailablePositionsTest() { var parameter = CommonParameter.GetParameters("Get", "mif", "20212022", "LTO", "", "", "LTOTeacher", "00052589"); List <PositionListApplying> result = PositionListCheckExe.AvailablePositions(parameter); // return result; // TODO: add assertions to method PositionListCheckExeTest.AvailablePositionsTest(Object) //Assert var result1 = result.Count.ToString();// myGridview.Rows.Count.ToString(); Assert.IsNotNull(result, $" position list count {result}"); return(result); }
public void SelectPositionsTest() { //Arrange // var parameter = CommonParameter.GetParameters("Get", "mif", "20212022", "LTO", "", "", "LTOTeacher", "00052589"); //Act List <PositionListPublish> checkList = PositionListCheckExe.SelectPositions(parameter); //Assert var result = checkList.Count.ToString();// myGridview.Rows.Count.ToString(); Assert.IsNotNull(result, $" position list count {result}"); }
public void HiredPosition4thRoundTest() { //Arrange var parameter = CommonParameter.GetParameters("Get", "mif", "20212022", "LTO", "", "1", "", "", ""); //Act List <PositionListHired> checkList = PositionListCheckExe.HiredPositions(parameter); //Assert var result = checkList.Count.ToString();// myGridview.Rows.Count.ToString(); Assert.IsNotNull(result, $" position list count {result}"); }
public void ConvertFunctionTableToString_SelectTestQualification_ReturnStringInclude_TeachersOCTQualification_Test() { //Arrange var parameter = new { Operate = "TableToString", StringValue = "", Delimiter = ";", TableName = "StaffQualification", CheckType = "Good" }; var expect = "Intermediate and Senior Divisions"; //Act string checkvalue = PositionListCheckExe.ConvertFunctionTableToString(parameter); //Assert var result = checkvalue;// myGridview.Rows.Count.ToString(); StringAssert.Contains(result, expect, $" position list count {result}"); }
public void ConvertFunctionTableToString_SelectTestTableInputTableWithBadCheck_ReturnStringInclude_BadValue3_Test() { //Arrange var parameter = new { Operate = "TableToString", StringValue = "", Delimiter = ";", TableName = "TestTable", CheckType = "Bad" }; var expect = "Bad Value 3"; //Act string checkvalue = PositionListCheckExe.ConvertFunctionTableToString(parameter); //Assert var result = checkvalue;// myGridview.Rows.Count.ToString(); StringAssert.Contains(result, expect, $" position list count {result}"); }
public void ConvertFunctionStringToTable_SingalInputValue_ReturnOneRecordTest() { //Arrange var parameter = new { Operate = "StringToTable", StringValue = "as ad adada adaas dad;", Delimiter = ";", TableName = "", CheckType = "" }; int expect = 1; //Act List <GeneralCheck> checkList = PositionListCheckExe.ConvertFunctionStringToTable(parameter); //Assert int result = checkList.Count; // myGridview.Rows.Count.ToString(); Assert.AreEqual(expect, result, $" position list count {result}"); }
public void ConvertFunctionStringToTable_BadInputValue_ReturnTableTest() { //Arrange var parameter = new { Operate = "StringToTable", StringValue = "33222; ;357;4;501;00012313;1;;24320824324", Delimiter = ";", TableName = "", CheckType = "" }; int expect = 8; //Act List <GeneralCheck> checkList = PositionListCheckExe.ConvertFunctionStringToTable(parameter); //Assert int result = checkList.Count; // myGridview.Rows.Count.ToString(); Assert.AreEqual(expect, result, $" position list count {result}"); }
public void SelectCandidatesTest() { //Arrange // var parameters = CommonParameter.GetParameters3("IncludeAll", "20212022", "23886"); var parameter = new { Operate = "IncludeAll", SchoolYear = "20212022", PositionID = "23886" }; //Act List <ApplicantListSelect> checkList = PositionListCheckExe.SelectCandidates(parameter); //Assert var result = checkList.Count.ToString();// myGridview.Rows.Count.ToString(); Assert.IsNotNull(result, $" position list count {result}"); }
public void InterviewCandidatesTest() { //Arrange var parameter = new { SchoolYear = "20212022", PositionID = "23886" }; //Act List <CandidateList> checkList = PositionListCheckExe.InterviewCandidates(parameter); //Assert var result = checkList.Count.ToString();// myGridview.Rows.Count.ToString(); Assert.IsNotNull(result, $" position list count {result}"); }
public void PublishPositionsTest() { //Arrange // var myGridview = new System.Web.UI.WebControls.GridView(); string expect = "334"; //Act List <PositionListPublish> checkList = PositionListCheckExe.PublishPositions(parameter); //myGridview.AutoGenerateColumns = true; //myGridview.DataSource = publishList; //myGridview.DataBind(); var result = checkList.Count.ToString();// myGridview.Rows.Count.ToString(); //Assert Assert.IsNotNull(result, $" Publish positions count is { result } "); }