示例#1
0
        public async void RemoveIssue_RemovesItem()
        {
            // Arrange
            var lengthBefore = controller.GetColumns().Result.Value.Count;
            var body         = new ColumnController.NewIssueType()
            {
                columnid = "0",
                issueid  = "0"
            };

            // Act
            await controller.AddIssue(body);

            await controller.RemoveIssue(body);

            var lengthAfter = controller.GetColumns().Result.Value.Count;

            // Assert
            Assert.Equal(lengthBefore, lengthAfter);
        }