Example #1
0
        public async Task ConstructOne()
        {
            var client = await ForceClientFactory.CreateAsync(ClientId, ClientSecret, Username, Password, IsProduction)
                         .ConfigureAwait(false);

            Assert.NotNull(client);
        }
Example #2
0
        public async Task ContructMultipleSame()
        {
            var client = await ForceClientFactory.CreateAsync(ClientId, ClientSecret, Username, Password, IsProduction)
                         .ConfigureAwait(false);

            var client2 = await ForceClientFactory.CreateAsync(ClientId, ClientSecret, Username, Password, IsProduction)
                          .ConfigureAwait(false);

            var clientId     = "ci_cat_id";
            var clientSecret = "ci_cat_secret";

            var client3 = await ForceClientFactory.CreateAsync(clientId, clientSecret, Username, Password, IsProduction)
                          .ConfigureAwait(false);

            Assert.NotNull(client);
            Assert.NotNull(client2);
            Assert.NotNull(client3);
        }
Example #3
0
 public SalesforceLayerTest()
 {
     _forceClient = ForceClientFactory.CreateAsync(ClientId, ClientSecret, Username, Password, IsProduction)
                    .GetAwaiter().GetResult();
 }