Last active
August 29, 2015 14:28
-
-
Save Krizzzn/d89f86e18f38a5b17467 to your computer and use it in GitHub Desktop.
Sfdc Toolkit Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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