public Task <Guid> CreateAsync( CrmTask task, Dictionary <string, string> headers = default, CancellationToken ct = default) { return(_factory.PostAsync <Guid>(_host + "/Tasks/v1/Create", null, task, headers, ct)); }
public Task UpdateAsync( CrmTask task, Dictionary <string, string> headers = default, CancellationToken ct = default) { return(_factory.PatchAsync(_host + "/Tasks/v1/Update", null, task, headers, ct)); }
public TaskBuilder(IDefaultRequestHeadersService defaultRequestHeadersService, ITasksClient tasksClient) { _tasksClient = tasksClient; _defaultRequestHeadersService = defaultRequestHeadersService; _task = new CrmTask { Id = Guid.NewGuid(), Name = "Test".WithGuid(), Description = "Test".WithGuid(), Result = "Test".WithGuid(), Priority = TaskPriority.Medium, StartDateTime = DateTime.UtcNow, EndDateTime = DateTime.UtcNow.AddDays(1), DeadLineDateTime = null, IsDeleted = false }; }