public void OrderController_CancelOrder_OrderFound() { IOrderManager orderManager = new OrderManager(); OrderAPI _controller = new OrderAPI(orderManager); int _orderId = 1; IActionResult _response = _controller.CancelOrder(_orderId); OkObjectResult _okObject = _response as OkObjectResult; Assert.NotNull(_response); Assert.Equal((int)HttpStatusCode.OK, _okObject.StatusCode); }