public void Can_Get_AccountInfo() { // // TODO: Add test logic here // _client.Login(TestVariables.Email, TestVariables.Password); var accountInfo = _client.Account_Info(); Assert.IsNotNull(accountInfo); Assert.IsNotNull(accountInfo.display_name); Assert.IsNotNull(accountInfo.uid); }
public void Can_Get_AccountInfo() { _client.UserLogin = new Models.UserLogin { Token = TestVariables.Token, Secret = TestVariables.Secret }; var accountInfo = _client.Account_Info(); Assert.IsNotNull(accountInfo); Assert.IsNotNull(accountInfo.display_name); Assert.IsNotNull(accountInfo.uid); }
protected void Page_Load(object sender, EventArgs e) { if (Request.Params["dropboxcallback"] == "1") { //Its a callback from dropbox! if (Session["DropNetUserLogin"] != null) { _client.UserLogin = Session["DropNetUserLogin"] as DropNet.Models.UserLogin; Session["DropNetUserLogin"] = _client.GetAccessToken(); var accountinfo = _client.Account_Info(); litOutput.Text = accountinfo.quota_info.quota.ToString(); } else { litOutput.Text = "Session expired..."; } } }