Пример #1
0
        public void CommonOperationTest_For_Interview()
        {
            //Arrange
            var operation = new InterviewResult();

            operation.Operate    = "Update";
            operation.PositionID = "11220";
            operation.CPNum      = "00019270";
            var expect = "Successfully";
            //Act
            var result = CommonOperationExcute <InterviewResult> .CommonOperation(operation, "Update");

            //Assert
            Assert.AreEqual(expect, result, $"  Interview Update is { result}");
        }
Пример #2
0
        public void CommonOperationTest_For_Publish()
        {
            //Arrange
            var parameter = new PositionPublish()
            {
                Operate       = "Save",
                SchoolYear    = schoolyear,
                PositionID    = 11568,
                PositionType  = "LTO",
                SchoolCode    = "0531",
                UserID        = "mif",
                Qualification = "English, French",
                PositionTitle = "New Test Class",
                PositionLevel = "BC708E"
            };
            var expect = "Successfully";
            //Act

            var result = CommonOperationExcute <PositionPublish> .CommonOperation(parameter, "Save");

            //Assert
            Assert.AreEqual(expect, result, $"  Interview Update is { result}");
        }