Пример #1
0
 public static SharpBucketV2 GetV2ClientAuthenticatedWithBasicAuthentication()
 {
     var sharpbucket = new SharpBucketV2();
      // Reads test data information from a file, you should structure it like this:
      // By default it reads from c:\
      // Username:yourUsername
      // Password:yourPassword
      // AccountName:yourAccountName
      // Repository:testRepository
      var lines = File.ReadAllLines("c:\\TestInformation.txt");
      var email = lines[0].Split(':')[1];
      var password = lines[1].Split(':')[1];
      sharpbucket.BasicAuthentication(email, password);
      return sharpbucket;
 }