From 39aa54bb10da8b76a4021feb984b8aad0df6269b Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Sun, 18 Aug 2019 18:07:50 +0800 Subject: Add avatar service. --- Timeline.Tests/Helpers/MyWebApplicationFactory.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Timeline.Tests/Helpers/MyWebApplicationFactory.cs') diff --git a/Timeline.Tests/Helpers/MyWebApplicationFactory.cs b/Timeline.Tests/Helpers/MyWebApplicationFactory.cs index dfadd1ae..e96d11fe 100644 --- a/Timeline.Tests/Helpers/MyWebApplicationFactory.cs +++ b/Timeline.Tests/Helpers/MyWebApplicationFactory.cs @@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.AspNetCore.TestHost; using Microsoft.Data.Sqlite; using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Diagnostics; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using System; @@ -37,6 +38,10 @@ namespace Timeline.Tests.Helpers { var options = new DbContextOptionsBuilder() .UseSqlite(_databaseConnection) + .ConfigureWarnings(builder => + { + builder.Throw(RelationalEventId.QueryClientEvaluationWarning); + }) .Options; using (var context = new DatabaseContext(options)) -- cgit v1.2.3