Skip to content

Instantly share code, notes, and snippets.

@Krizzzn
Last active August 29, 2015 14:28
Show Gist options
  • Save Krizzzn/d89f86e18f38a5b17467 to your computer and use it in GitHub Desktop.
Save Krizzzn/d89f86e18f38a5b17467 to your computer and use it in GitHub Desktop.
Sfdc Toolkit Test
namespace Salesforce.Force.FunctionalTests.Models
{
public class Event
{
public string Id { get; set; }
public string Description { get; set; }
public string Subject { get; set; }
public string WhatId { get; set; }
public DateTimeOffset? ActivityDate { get; set; }
}
}
[Test]
public async void Create_EventWithDate_IsSuccess()
{
var account = new Account { Name = "New Account", Description = "New Account Description" };
var accountid = await _client.CreateAsync("Account", account);
var event = new Event() {
Description = "new Event",
Subject = "new Event",
WhatId = accountid,
ActivityDate = DateTime.Now
}
var event = await _client.CreateAsync("Event", id);
Assert.IsNotNullOrEmpty(event);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment