public async Task ConstructOne() { var client = await ForceClientFactory.CreateAsync(ClientId, ClientSecret, Username, Password, IsProduction) .ConfigureAwait(false); Assert.NotNull(client); }
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); }
public SalesforceLayerTest() { _forceClient = ForceClientFactory.CreateAsync(ClientId, ClientSecret, Username, Password, IsProduction) .GetAwaiter().GetResult(); }