public void Setup() { var token = new AccessToken(); var handler = new FakeResponseHandlerByHost(); handler.AddFakeResponse(new Uri($"https://api.vk.com/method/wall.get?"), new HttpResponseMessage(HttpStatusCode.OK) { Content = new ByteArrayContent(Resources.FakeWallGetResponse) }); var vkApi = new vk.Models.VkApi.VkApi(token, handler); _apiProvider = new VkApiProvider(token, vkApi); }
public GroupsGetById(VkApi api) { _api = api; }
public GroupsGet(VkApi api) { _api = api; }
public WallGet(VkApi api) { this._api = api; }
public WallPost(VkApi api) { this._api = api; }
public PhotosGetById(VkApi api) { _api = api; }