常用方法
常用方法
常用方法
常用方法
public void ApiUserByNameDeleteTestWithRights() { string name = Common.UserName; string authorization = Common.AdminAuth; Assert.IsNotNull(instance.ApiUserByNameGet(name, authorization)); instance.ApiUserByNameDelete(name, authorization); var ex2 = Assert.Catch(() => instance.ApiUserByNameGet(name, authorization)) as ApiException; Assert.AreEqual(Common.NotFoundCode, ex2.ErrorCode); }