public async Task WhenGet_ThenSuccess()
        {
            var headers = await _defaultRequestHeadersService.GetAsync();

            var statusId = (await _create.TaskStatus.BuildAsync()).Id;

            var status = await _taskStatusesClient.GetAsync(statusId, headers);

            Assert.NotNull(status);
            Assert.Equal(statusId, status.Id);
        }
Beispiel #2
0
        public async Task <CrmTaskStatus> BuildAsync()
        {
            var headers = await _defaultRequestHeadersService.GetAsync();

            var id = await _taskStatusesClient.CreateAsync(_status, headers);

            return(await _taskStatusesClient.GetAsync(id, headers));
        }