Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void AvailablePositionsTest()
        {
            //Arrange
            var parameter = CommonParameter.GetParameters("Get", "mif", "20212022", "LTO", "", "", "LTOTeacher", "00052589");

            //Act
            List <PositionListApplying> checkList = PositionListCheckExe.AvailablePositions(parameter);

            //Assert
            var result = checkList.Count.ToString();//  myGridview.Rows.Count.ToString();

            Assert.IsNotNull(result, $" position list count {result}");
        }
Exemplo n.º 3
0
        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}");
        }
Exemplo n.º 4
0
        public void PositionTest_RequestPostingbyRequestID()
        {    //Arrange
            int newid = getNewRequestID("LTO");

            ParametersForPosition parameters = CommonParameter.GetParameters("20182019", newid.ToString());

            int expect = newid;

            //Act
            PositionRequesting position = RequestingPostExe.Position(parameters)[0];

            int result = position.PositionID;

            //Assert
            Assert.AreEqual(expect, result, $"  Request position by ID { result} ");
        }