How to unit test an Azure Function now that Microsoft.AspNetCore.Mvc is deprecated?

Tyler Mason 50 Reputation points
2023-12-09T02:57:34.1+00:00

Working through Exercise - Unit test an Azure Function and on step 8, when I search Microsoft.AspNetCore.Mvc on NuGet it tells me that it's deprecated.

User's image

I tried this on both .NET 6 and 8.

Is there a new process for setting up mock HTTP environments for unit testing here?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Developer technologies ASP.NET ASP.NET Core
Developer technologies Visual Studio Other
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-12-09T18:25:06.2966667+00:00
    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.