Ejemplo n.º 1
0
        public string SPNameTest(string action)
        {
            string result = PublishPositionExe.SpName(action);

            return(result);
            // TODO: add assertions to method PublishPositionExeTest.SPNameTest(String)
        }
Ejemplo n.º 2
0
        public void SPNameTest_retrun_CreateNewPublish_StoreProcedure_name()
        {
            //Arrange
            string action = "New";

            //Act
            string expect = "dbo.tcdsb_LTO_PagePublish_CreateNew @Operate,@UserID,@SchoolYear,@SchoolCode,@PositionID,@PositionType";
            string result = PublishPositionExe.SpName(action);

            //Assert
            Assert.AreEqual(expect, result, $" Create new Publish Position Store Procedure Name:  { result}");
        }
Ejemplo n.º 3
0
        public void SPNameTest_retrun_Positions_StoreProcedure_name()
        {
            //Arrange
            string action = "Positions";

            //Act
            string expect = "dbo.tcdsb_LTO_PagePublish_Positions @Operate,@UserID,@SchoolYear,@PositionType,@Panel,@Status,@SearchBy,@SearchValue1,@SearchValue2";
            string result = PublishPositionExe.SpName(action);

            //Assert
            Assert.AreEqual(expect, result, $" Publish Positions list Store Procedure Name:  { result}");
        }
Ejemplo n.º 4
0
        public void SPNameTest_retrun_Position_StoreProcedure_name()
        {
            //Arrange
            string action = "Position";

            //Act
            string expect = "dbo.tcdsb_LTO_PagePublish_Position @SchoolYear, @PositionID";
            string result = PublishPositionExe.SpName(action);

            //Assert
            Assert.AreEqual(expect, result, $" Publish Position Store Procedure Name:  { result}");
        }
Ejemplo n.º 5
0
        public string Update(object parameter)
        {
            string sp = PublishPositionExe.SpName("Update");

            return(CommonExcute <string> .GeneralValue(sp, parameter));
        }
Ejemplo n.º 6
0
        public List <T> Positions(object parameter)
        {
            string sp = PublishPositionExe.SpName("Positions");

            return(CommonExcute <T> .GeneralList(sp, parameter));
        }