public async Task RemoveTodo_ValidTodo_NoContent() { // Arrange var tId = 15; var service = new MockTodoService { MRemoveTodoByIdAsync = (todoId, userId) => { } }; var controller = new TodoController(service); MockClaims.AddUserIdClaim(controller, MockApplicationUsers.Get(0).Id); // Act var result = await controller.RemoveTodo(tId) as NoContentResult; // Assert Assert.NotNull(result); Assert.Equal(204, result.StatusCode); }