Esempio n. 1
0
        public void ProfileTest_Return_Pernr_Number_byUserCPNum()
        {
            //Arrange
            string  action    = "PernrNum";
            string  cpnum     = "00054071";
            Profile parameter = new Profile()
            {
                Operate     = action,
                SchoolYear  = "20192020",
                ProfileType = action,
                CheckValue  = cpnum
            };

            // Act
            string expect = "00062531";
            string result = GeneralExe.Profile(parameter);

            //Assert
            Assert.AreEqual(expect, result, $"Pernr Number is { result} from CPNum ID: { cpnum } ");
        }
Esempio n. 2
0
        public void ProfileTest_Return_Applicant_Role()
        {
            //Arrange
            string  action    = "UserRole";
            string  userid    = "antonim03";
            Profile parameter = new Profile()
            {
                Operate     = action,
                SchoolYear  = "20192020",
                ProfileType = action,
                CheckValue  = userid
            };

            // Act
            string expect = "Roster";
            string result = GeneralExe.Profile(parameter);

            //Assert
            Assert.AreEqual(expect, result, $" User Role is { result} from User ID: { userid } ");
        }
Esempio n. 3
0
        public void ProfileTest_Return_PostingNumber_byPositionID()
        {
            //Arrange
            string  action     = "PostingNumber";
            string  positinoID = "15586";
            Profile parameter  = new Profile()
            {
                Operate     = action,
                SchoolYear  = "20192020",
                ProfileType = action,
                CheckValue  = positinoID
            };

            // Act
            string expect = "2019-14595";
            string result = GeneralExe.Profile(parameter);

            //Assert
            Assert.AreEqual(expect, result, $"Posting Number is { result} from position ID: { positinoID } ");
        }