public void Plus() { var body = new ModelRequest() { Value1 = 1, Value2 = 2 }; var actionResult = _mathController.Plus(body); var objectResult = (ObjectResult)actionResult.Result; Assert.Equal(200, objectResult.StatusCode); Assert.Equal(3, objectResult.Value); }