예제 #1
0
        public async Task Label_Post_ShouldReturnData()
        {
            var model = new LabelAddModel
            {
                Name = "New label",
            };
            var results = await _controller.Post(DefaultGroup, model);

            results
            .Should().BeOfType <OkObjectResult>()
            .Which.Value.Should().BeAssignableTo <LabelManageModel>()
            .Which.Should().NotBeNull();
        }