public IHttpActionResult Get(string UserID, string AppID) { var para = new { Operate = "AppRole", UserID, AppID }; var result = _action.GetValue(para); return(CheckActionResult(result)); }
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} "); }
public string GetValue(object parameter) { return(_actionApp.GetValue(parameter)); }