© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
Denis

Unit Testing gRPC server with EF Core

I have an ASP.NET Core gRPC server that exposes several endpoints. Calling these endpoints affects a connected database via EF Core.

How can I effectively test the gRPC endpoints while also mocking the database?
The db is abstracted through an interface.

Let's say my endpoints are:
- CreateGreeting, and
- GetAllGreetings
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

Unit Testing with NUnit
C#CC# / help
2y ago
unit testing
C#CC# / help
2y ago
Unit testing
C#CC# / help
2y ago
✅ Unit testing
C#CC# / help
3y ago