コード例 #1
0
        public async Task DeleteWorksAsync()
        {
            var note = new TodoNote {
                Note = "testing"
            };
            var todo = new Todo(note);
            await m_controller.DataLayer.InsertAsync(todo);

            var actionResult = await m_controller.DeleteAsync(todo.Id);

            var okResult = actionResult as OkResult;

            Assert.IsNotNull(okResult);
        }