예제 #1
0
        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);
        }
예제 #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));
        }