Пример #1
0
        public void TodoToDown()
        {
            var todoController = new TodoController(this.dbcontex.Object);

            todoController.ReOrderTodosRowSort(this.dbcontex.Object.Todo.ToList(), 0, 4);
            int todoOrder = this.dbcontex.Object.Todo.Where(t => t.Id == 1).Single().Order;

            Assert.AreEqual(4, todoOrder);
        }