public PhotoViewerWindow(VKontakteApiWrapper wrapper, List<Friend> friends) : this(wrapper) { if (friends == null) throw new ArgumentNullException("friends"); Friends = friends; }
public PhotoViewerWindow(VKontakteApiWrapper wrapper) { InitializeComponent(); this.Closing += new System.ComponentModel.CancelEventHandler(PhotoViewerWindow_Closing); if (wrapper == null) throw new ArgumentNullException("wrapper"); _wrapperWeak = new GenericWeakReference<VKontakteApiWrapper>(wrapper); }
public void MyTestMethod2() { VKontakteApiWrapper wrapper = new VKontakteApiWrapper(long.Parse(appId), appSecret,(int)VKontakteApiWrapper.All); bool connected = wrapper.CoonectBasedOnServer(appId, appSecret); Assert.IsTrue(connected); Assert.IsTrue(object.ReferenceEquals(wrapper, VKontakteApiWrapper.Instance)); var doc= VKontakteApiWrapper.Instance.ExecuteMethodByToken("audio.get",new List<VKParameter>() { new VKParameter("uid", "81523827") }); Assert.IsNotNull(doc); }
public VKontakteApiWrapper(long appId, string appSecret, int settings) { m_appId = appId; m_appSecret = appSecret; m_settings = settings; m_instance = this; }