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