Пример #1
0
        public void TestCreateTodoItemCount()
        {
            int initialTodoCount = todoItems.Count();

            todoItemService.CreateTodoItem(firstUser, firstDescription);
            int todoCountAfterCreate = todoItems.Count();

            Assert.That(initialTodoCount + 1, Is.EqualTo(todoCountAfterCreate));
        }
Пример #2
0
 public IActionResult CreateTodoItem([FromBody] TodoItem todoItem)
 {
     return(_todoItemService.CreateTodoItem(todoItem));
 }