public async Task When_Requested_For_The_Token_Then_Return_Token_And_Secret() { using (var client = new Client()) { UserLogin login = await client.RequestToken(); Assert.IsNotNull(login); } }
public async Task Given_User_Login_When_Account_Information_Requested_Then_Get_The_Infromation() { using (var client = new Client()) { client.SetUserLoginToHandler(_user); var information = await client.GetAccountInformation(); Assert.IsNotNull(information); Assert.AreEqual("*****@*****.**", information.Email); } }
public async Task When_Requested_Get_The_Give_Folder_Metadata() { using (var client = new Client()) { client.SetUserLoginToHandler(_user); var metadata = await client.GetMetadata("Documents"); Assert.IsNotNull(metadata); Assert.AreEqual(@"/Documents", metadata.Data.Path, true); } }
public async Task When_Requested_Get_The_Root_Folder_Metadata() { using (var client = new Client()) { client.SetUserLoginToHandler(_user); var metadata = await client.GetRoot(); Assert.IsNotNull(metadata); Assert.AreEqual(@"/", metadata.Data.Path); } }
public void Given_A_Login_Details_And_CallBack_Url_Then_Create_Authorisation_Url() { using (var client = new Client()) { var user = new UserLogin("h85b2dyc1018zjp", "8zvszrc4mncrebf"); string url = client.CreateAuthoriseUrl(user, "http://www.cloudyboxapp.com"); Debug.WriteLine(url); Assert.IsNotNull(url); } }