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);
        }
Пример #2
0
 public GroupsGetById(VkApi api)
 {
     _api = api;
 }
Пример #3
0
 public GroupsGet(VkApi api)
 {
     _api = api;
 }
Пример #4
0
 public WallGet(VkApi api)
 {
     this._api = api;
 }
Пример #5
0
 public WallPost(VkApi api)
 {
     this._api = api;
 }
Пример #6
0
 public PhotosGetById(VkApi api)
 {
     _api = api;
 }