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(); }
public async Task <IdentityResult> DeleteAsync(UserEntity user, CancellationToken cancellationToken) { await apiClient.DeleteAsync(user); return(IdentityResult.Success); }