示例#1
0
        public async Task WhenRestore_ThenSuccess()
        {
            var headers = await _defaultRequestHeadersService.GetAsync();

            var statusIds = (
                await Task.WhenAll(
                    _create.TaskStatus
                    .WithName("Test".WithGuid())
                    .BuildAsync(),
                    _create.TaskStatus
                    .WithName("Test".WithGuid())
                    .BuildAsync())
                )
                            .Select(x => x.Id)
                            .ToList();

            await _taskStatusesClient.RestoreAsync(statusIds, headers);

            var statuses = await _taskStatusesClient.GetListAsync(statusIds, headers);

            Assert.All(statuses, x => Assert.False(x.IsDeleted));
        }