public void Add_WithCaptcha_NormalCase() { const string url = "https://api.vk.com/method/friends.add?user_id=242508&text=hello, user!&captcha_sid=1247329&captcha_key=hug2z&access_token=token"; const string json = @"{ 'response': 1 }"; FriendsCategory cat = GetMockedFriendsCategory(url, json); AddFriendStatus status = cat.Add(242508, "hello, user!", captchaSid: 1247329, captchaKey: "hug2z"); Assert.That(status, Is.EqualTo(AddFriendStatus.Sended)); }
public void Add_NormalCase() { const string url = "https://api.vk.com/method/friends.add?user_id=242508&text=hello, user!&access_token=token"; const string json = @"{ 'response': 1 }"; FriendsCategory cat = GetMockedFriendsCategory(url, json); AddFriendStatus status = cat.Add(242508, "hello, user!"); Assert.That(status, Is.EqualTo(AddFriendStatus.Sended)); }