Пример #1
0
        public ReadingFixture()
        {
            Task.Run(async() =>
            {
                Client = await TestClient.BuildAsync("reading");

                var contents = await Client.GetAllAsync();

                if (contents.Total != 10)
                {
                    foreach (var content in contents.Items)
                    {
                        await Client.DeleteAsync(content);
                    }

                    for (var i = 10; i > 0; i--)
                    {
                        await Client.CreateAsync(new TestEntityData {
                            Value = i
                        }, true);
                    }
                }
            }).Wait();
        }
Пример #2
0
        public async Task <IdentityResult> DeleteAsync(UserEntity user, CancellationToken cancellationToken)
        {
            await apiClient.DeleteAsync(user);

            return(IdentityResult.Success);
        }