public static async Task TestSetup(TestContext context)
 {
     var settings = new EncryptionSettings(new HmacSHA256KeyGenerator());
     Encryptor.init(settings);
     var options = new LoginOptions(TestCredentials.LoginUrl, TestCredentials.ClientId, TestCallbackUrl, "mobile",
         TestScopes);
     var response = new AuthResponse
     {
         RefreshToken = TestCredentials.RefreshToken,
         AccessToken = TestAuthToken,
         InstanceUrl = TestCredentials.InstanceUrl,
         IdentityUrl = TestCredentials.IdentityUrl,
         Scopes = TestScopes,
     };
     Account account = await AccountManager.CreateNewAccount(options, response);
     account.UserId = TestCredentials.UserId;
     account.UserName = TestCredentials.Username;
     await OAuth2.RefreshAuthToken(account);
     _smartStore = SmartStore.GetGlobalSmartStore();
     _smartStore.ResetDatabase();
     _syncManager = SyncManager.GetInstance();
     _restClient = new RestClient(account.InstanceUrl, account.AccessToken,
         async () =>
         {
             account = AccountManager.GetAccount();
             AuthResponse authResponse =
                 await OAuth2.RefreshAuthTokenRequest(account.GetLoginOptions(), account.RefreshToken);
             account.AccessToken = authResponse.AccessToken;
             return account.AccessToken;
         }
         );
     CreateAccountsSoup();
     _idToNames = await CreateTestAccountsOnServer(CountTestAccounts);
 }
 public void Setup()
 {
     EncryptionSettings settings = new EncryptionSettings(new HmacSHA256KeyGenerator())
     {
         Password = "******",
         Salt = "mysalt"
     };
     Encryptor.init(settings);
 }
 protected override SalesforceConfig InitializeConfig()
 {
     EncryptionSettings settings = new EncryptionSettings(new HmacSHA256KeyGenerator())
     {
         Password = "******",
         Salt = "mysalt"
     };
     Encryptor.init(settings);
     Config config = SalesforceConfig.RetrieveConfig<Config>();
     if (config == null)
         config = new Config();
     return config;
 }
 protected override Salesforce.SDK.Source.Settings.SalesforceConfig InitializeConfig()
 {
     EncryptionSettings settings = new EncryptionSettings(new HmacSHA256KeyGenerator())
     {
         Password = "******",
         Salt = "friesaresaltyforsure"
     };
     Encryptor.init(settings);
     Config config = SalesforceConfig.RetrieveConfig<Config>();
     if (config == null)
         config = new Config();
     return config;
 }
 public static void init(EncryptionSettings settings)
 {
     Settings = settings;
 }
 public void Setup()
 {
     var settings = new EncryptionSettings(new HmacSHA256KeyGenerator());
     Encryptor.init(settings);
 }