示例#1
0
        public void UpdateApiUrl(string newApiUrl)
        {
            var defaultHttpClient = HttpClientFactory.Create(newApiUrl);

            AuthenticationApi = RestService.For <IAuthenticationApi>(defaultHttpClient);
            ContactsApi       = RestService.For <IContactsApi>(defaultHttpClient);
        }
        public void SetUpTest()
        {
            this.profileProvider = new SalesforceProfileProvider();
              this.profileProvider.Initialize("salesforce", new NameValueCollection() { { "readOnly", "false" }, { "applicationName", "sitecore" } });

              var configuration = SalesforceManager.GetConfiguration(this.profileProvider.Name);

              this.Client = configuration.Client;
              this.ContactsApi = configuration.Api.ContactsApi;
        }
示例#3
0
        public void SetUpTest()
        {
            var configuration = SalesforceManager.GetConfiguration("salesforce");

            this.Client      = configuration.Client;
            this.ContactsApi = configuration.Api.ContactsApi;
            this.RolesApi    = configuration.Api.RolesApi;

            this.InitializeRoles("Test-Role-Get", "Test-Role-1");

            this.InitializeUsersInRole("Test-Role-1", "*****@*****.**");
        }
        public void SetUpTest()
        {
            this.profileProvider = new SalesforceProfileProvider();
            this.profileProvider.Initialize("salesforce", new NameValueCollection()
            {
                { "readOnly", "false" }, { "applicationName", "sitecore" }
            });

            var configuration = SalesforceManager.GetConfiguration(this.profileProvider.Name);

            this.Client      = configuration.Client;
            this.ContactsApi = configuration.Api.ContactsApi;
        }
示例#5
0
        public void SetUpTest()
        {
            this.membershipProvider = new SalesforceMembershipProvider();
            this.membershipProvider.Initialize(
                "salesforce",
                new NameValueCollection
            {
                { "applicationName", "sitecore" },
                { "readOnly", "false" },
                { "enablePasswordReset", "true" },
                { "minRequiredPasswordLength", "1" },
                { "passwordStrengthRegularExpression", ".*" },
                { "minRequiredNonalphanumericCharacters", "0" },
                { "maxInvalidPasswordAttempts", "5" },
                { "passwordAttemptWindow", "0" },
                { "requiresUniqueEmail", "true" }
            });

            var configuration = SalesforceManager.GetConfiguration("salesforce");

            this.Client      = configuration.Client;
            this.ContactsApi = configuration.Api.ContactsApi;
        }
 public ContactsService()
 {
     _restService = Locator.Current.GetService <IRestPoolService>().ContactsApi;
 }
        public void SetUpTest()
        {
            var configuration = SalesforceManager.GetConfiguration("salesforce");

              this.Client = configuration.Client;
              this.ContactsApi = configuration.Api.ContactsApi;
              this.RolesApi = configuration.Api.RolesApi;

              this.InitializeRoles("Test-Role-Get", "Test-Role-1");

              this.InitializeUsersInRole("Test-Role-1", "*****@*****.**");
        }
        public void SetUpTest()
        {
            this.membershipProvider = new SalesforceMembershipProvider();
              this.membershipProvider.Initialize(
            "salesforce",
            new NameValueCollection
              {
            { "applicationName", "sitecore" },
            { "readOnly", "false" },
            { "enablePasswordReset", "true" },
            { "minRequiredPasswordLength", "1" },
            { "passwordStrengthRegularExpression", ".*" },
            { "minRequiredNonalphanumericCharacters", "0" },
            { "maxInvalidPasswordAttempts", "5" },
            { "passwordAttemptWindow", "0" },
            { "requiresUniqueEmail", "true" }
              });

              var configuration = SalesforceManager.GetConfiguration("salesforce");

              this.Client = configuration.Client;
              this.ContactsApi = configuration.Api.ContactsApi;
        }
示例#9
0
 public ContactListEsiProvider()
 {
     _contactsApi  = new ContactsApi();
     _characterApi = new CharacterApi();
     _universeApi  = new UniverseApi();
 }