public void PublishPositionsTest_ReturnAllPublishedList_bySearchAll() { //Arrange parameters.Status = "All"; string expect = "LTO"; //Act var list = CommonListExecute.PublishPositions(parameters); int resultCount = list.Count; var result = list[0].PositionType; //Assert Assert.AreEqual(expect, result, $" published positions are { result}"); Assert.IsTrue(resultCount >= 100, $" published List is { resultCount}"); }
public void PublishPositionsTest_ReturnAllPublishedList_bySearchPostingNumber() { //Arrange parameters.Status = "All"; parameters.SearchBy = "DeadlineDate"; parameters.SearchValue1 = "2018-13136"; string expect = "2018-13136"; //Act var list = CommonListExecute.PublishPositions(parameters); int resultCount = list.Count; var result = list[0].PostingNumber; //Assert Assert.AreEqual(expect, result, $" published positions are { result}"); Assert.IsTrue(resultCount >= 4, $" published posting List is { resultCount}"); }
public void PublishPositionsTest_ReturnAllPublishedList_bySearchSchool() { //Arrange parameters.Status = "All"; parameters.SearchBy = "School"; parameters.SearchValue1 = "0320"; string expect = "0320"; //Act var list = CommonListExecute.PublishPositions(parameters); int resultCount = list.Count; var result = list[0].SchoolCode; //Assert Assert.AreEqual(expect, result, $" published positions are { result}"); Assert.IsTrue(resultCount >= 1, $" published posting List is { resultCount}"); }