コード例 #1
0
        public async Task TestCreateLabel()
        {
            LabelModel label = await _sut.CreateLabelAsync("Label_created_by_TestCreateLabel");

            Assert.IsNotNull(label);
            Assert.IsTrue(label.ID > 0);
            Assert.AreEqual("Label_created_by_TestCreateLabel", label.Name);
            Assert.IsTrue(label.Order > 0);

            await _sut.DeleteLabelAsync(label.ID);
        }