public async Task GetByIdWorksAsync() { var note = new TodoNote { Note = "testing" }; var todo = new Todo(note); await m_controller.DataLayer.InsertAsync(todo); var actionResult = await m_controller.GetAsync(todo.Id); var contentResult = actionResult as OkNegotiatedContentResult <Todo>; Assert.IsNotNull(contentResult); Assert.IsNotNull(contentResult.Content); Assert.AreEqual(todo.Id, contentResult.Content.Id); Assert.AreEqual(todo.Note, contentResult.Content.Note); }