public void AddBudget_ShouldGetBudgetFromBody() { var fromBody = _budgetController.GetType() .GetTypeInfo() .GetMethod("AddBudget") .GetParameters() .Last() .CustomAttributes .First(); Assert.NotNull(fromBody); }