In-memory testing using ASP.NET Core