public async void Create_Contact_Typed_Annotations() { var contact = new Contact { Id = "Id", IsDeleted = false, AccountId = "AccountId", Name = "Name", FirstName = "FirstName", LastName = "LastName", Description = "Description" }; var successResponse = await _client.CreateAsync("Contact", contact); Assert.IsNotNullOrEmpty(successResponse.Id); }
public async Task Create_Contact_Typed_Annotations() { var contact = new Contact { Id = "Id", IsDeleted = false, AccountId = "AccountId", Name = "Name", FirstName = "FirstName", LastName = "LastName", Description = "Description" }; var successResponse = await _client.CreateAsync("Contact", contact); Assert.That(successResponse.Id, Is.Not.Null.And.Not.Empty); }
public async void Create_Contact_Typed_Annotations() { using (var httpClient = new HttpClient()) { var client = await GetForceClient(httpClient); var contact = new Contact {Id = "Id", IsDeleted = false, AccountId = "AccountId", Name = "Name", FirstName = "FirstName", LastName = "LastName", Description = "Description"}; var id = await client.CreateAsync("Contact", contact); Assert.IsNotNullOrEmpty(id); } }