Ejemplo n.º 1
0
 public TodoService(IEventsClient eventsClient, ITasksClient tasksClient,
                    ILogger <TodoService> logger)
 {
     _eventsClient = eventsClient;
     _tasksClient  = tasksClient;
     _logger       = logger;
 }
Ejemplo n.º 2
0
 public TasksTests(
     ICreate create,
     IDefaultRequestHeadersService defaultRequestHeadersService,
     ITasksClient tasksClient)
 {
     _create = create;
     _defaultRequestHeadersService = defaultRequestHeadersService;
     _tasksClient = tasksClient;
 }
Ejemplo n.º 3
0
 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
     };
 }