Example #1
0
        public IHttpActionResult Get(string UserID, string AppID)
        {
            var para = new { Operate = "AppRole", UserID, AppID };

            var result = _action.GetValue(para);

            return(CheckActionResult(result));
        }
Example #2
0
        public void GetValue_InputUserIDandAppID_IEP_ReturnRole_Test(string UserID, string checkRole)
        {
            //Arrange
            string expect = checkRole;
            var    para   = new { Operate = "AppRole", UserID, AppID = "IEP" };

            //Act
            var result = _action.GetValue(para);

            //Assert
            Assert.AreEqual(expect, result, $" test {result} ");
        }
Example #3
0
 public string GetValue(object parameter)
 {
     return(_actionApp.GetValue(parameter));
 }