How to Test Entity Framework Code with IDbContext and Moq
A legacy Entity Framework Core example that wraps DbContext in an interface and verifies writes with Moq, plus current testing guidance.
4 notes with this tag.
A legacy Entity Framework Core example that wraps DbContext in an interface and verifies writes with Moq, plus current testing guidance.
A legacy .NET Core example of Basic authentication with an MVC filter and custom middleware, including its security limitations.
Build readable, stable ASCII URL slugs in C# with Unicode normalization, transliteration, separator cleanup, and a safe length limit.
Configure ASP.NET Core rate-limiting middleware with named policies, endpoint attributes, HTTP 429 responses, and production considerations.