xunit

.NET Core Web App

April 27, 2020
.net core, moq, xunit

Create a .NET Core C# web application that renders a list of random names api. Load Names from an API, where the URI for API is set in an appSettings file. Use the Configuration IOptions pattern and the HttpClientFactory factory class. Create a test using Moq and xUnit, and return Stub from HttpMessageHandler. Use a different API URI per environment. Requirements: Create an .NET Core web app using the dotnet CLI and add to a src folder ...