public async Task Given_A_Clent_Get_User_Account_Infromation() { var client = new DropNetClient(AppKey, AppSecret, UserToken, UserSecret); var accountInfromation = await client.AccountInfoAsync(); Assert.NotNull(accountInfromation); Assert.NotNull(accountInfromation.QuotaInfo); }
public async Task Given_UserToken_When_Build_Auth_Url_Then_The_Authentication_Url_Is_Returned() { var client = new DropNetClient(AppKey, AppSecret); var userToken = await client.GetRequestToken(); string url = client.BuildAuthorizeUrl(userToken, "http://cloudyboxapp.com"); Assert.IsNotEmpty(url); }
public async Task Get_Access_Token_Test() { var client = new DropNetClient(AppKey, AppSecret); var userToken = await client.GetRequestToken(); //Open the url in browser and login string url = client.BuildAuthorizeUrl(userToken, "http://cloudyboxapp.com"); var user = await client.GetAccessToken(); Assert.NotNull(user); }
public async Task When_Token_Requested_Then_User_Token_Is_Returned() { var client = new DropNetClient(AppKey, AppSecret); var userToken = await client.GetRequestToken(); Assert.NotNull(userToken); }
public void Setup() { _client = new DropNetClient(AppKey, AppSecret, UserToken, UserSecret); }