public void unblockUserTest() { BlockUserRequest req = new BlockUserRequest(Constants.DOLPHIN, Constants.OTHER_EMAIL, "unblockUser", Constants.MY_ID, Constants.VALID_TOKEN); string json = JsonConvert.SerializeObject(req); string res = sendNetworkRequestHere(json); Assert.IsTrue(res.Contains("user unblocked successfully")); }
public void blockUserTest() { //BlockUserRequest req = new BlockUserRequest(dolphin, otherEmail, "blockUser", id, validToken); BlockUserRequest req = new BlockUserRequest(Constants.OTHER_EMAIL, Constants.DOLPHIN, "blockUser", Constants.MY_ID, Constants.VALID_TOKEN); string json = JsonConvert.SerializeObject(req); string res = sendNetworkRequestHere(json); Assert.IsTrue(res.Contains("user blocked successfully")); }