예제 #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
        // End singel schemas

        public async Task <List <Page> > GetPagesAsync()
        {
            var page = await pagesClient.GetAllAsync();

            return(page.Items);
        }