© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
13 replies
Brady Kelly

✅ Mock a .NET library to test a minimal web API.

I'm busy developing a .NET minimal API to provide services (data access) for a MAUI app. The API must use a DAL that is, for now, hosted on Azure where it directly accesses a SQL Server database through EF. My first checkpoint is to test the web api locally to ensure endpoints are correctly set up etc. and to do so I'll need to mock the DAL (a single .NET DLL).

The DAL has no interfaces to mock, but I can add those if needed, but I was wondering id there was any way besides adding interfaces to automatically mock the DAL classes.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Web things minimal api
C#CC# / help
3y ago
NUnit test with Asp net web API
C#CC# / help
17mo ago
✅ ASP.Net Core Web API
C#CC# / help
6mo ago
✅ Vue js + .Net Web Api
C#CC# / help
16mo ago