public async Task DeleteUsers()
        {
            var usersIds = fillTestDbHelper.Users.Select(opt => opt.Id).Take(3);
            await deleteUsersService.DeleteUsersAsync(usersIds);

            var actualUsers = await loadUsersService.GetUsersByIdAsync(usersIds);

            Assert.Empty(actualUsers);
        }
Beispiel #2
0
        public async Task HandleAsync()
        {
            List <BlockSegmentVm> segments = new List <BlockSegmentVm>();

            foreach (long userId in notice.UsersIds)
            {
                segments.Add(await BlockSegmentsService.Instance.CreateDeleteUserSegmentAsync(userId, null, nodeConnection.Node.Id).ConfigureAwait(false));
            }
            BlockGenerationHelper.Instance.AddSegments(segments);
            await deleteUsersService.DeleteUsersAsync(notice.UsersIds).ConfigureAwait(false);
        }