public async Task UpdateWorksAsync() { var note = new TodoNote { Note = "testing" }; var todo = new Todo(note); await m_controller.DataLayer.InsertAsync(todo); var noteUpdate = new TodoNote { Note = "testing update" }; var todoUpdate = new Todo(noteUpdate); todoUpdate.Id = todo.Id; var actionResult = await m_controller.PutAsync(todoUpdate); var okResult = actionResult as OkResult; Assert.IsNotNull(okResult); }