예제 #1
0
        public async Task GetByIdAsyncTest()
        {
            var blocks = await BlockService.GetAllAsync();

            Assert.IsNotNull(blocks);
            Assert.IsNotNull(blocks.Blocks);
            Assert.IsTrue(blocks.Success);
            Assert.IsNull(blocks.Error);

            var block = blocks.Blocks.FirstOrDefault();

            Assert.IsNotNull(block);

            var block1 = BlockService.GetById(block.Id);

            GetByIdResultTest(block1);
        }
예제 #2
0
        public async Task GetAllAsyncTest()
        {
            var blocks = await BlockService.GetAllAsync();

            GetAllResultTest(blocks);
        }