diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-19 01:52:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-19 01:52:36 +0800 |
commit | 501fe7b988dfbdea7a62f78cb50c1ac66d5f4a20 (patch) | |
tree | e1091ffcf9e3571c1a9de4a71b12f0527397af19 /Timeline.Tests/Helpers/MyWebApplicationFactory.cs | |
parent | 0630fd020ec11e343b787a18d70f1f13fdb350b3 (diff) | |
parent | 5808bd6efb42847560ed10b2cc56323594d241de (diff) | |
download | timeline-501fe7b988dfbdea7a62f78cb50c1ac66d5f4a20.tar.gz timeline-501fe7b988dfbdea7a62f78cb50c1ac66d5f4a20.tar.bz2 timeline-501fe7b988dfbdea7a62f78cb50c1ac66d5f4a20.zip |
Merge pull request #43 from crupest/avatar
Add avatar feature.
Diffstat (limited to 'Timeline.Tests/Helpers/MyWebApplicationFactory.cs')
-rw-r--r-- | Timeline.Tests/Helpers/MyWebApplicationFactory.cs | 5 |
1 files changed, 5 insertions, 0 deletions
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<DatabaseContext>()
.UseSqlite(_databaseConnection)
+ .ConfigureWarnings(builder =>
+ {
+ builder.Throw(RelationalEventId.QueryClientEvaluationWarning);
+ })
.Options;
using (var context = new DatabaseContext(options))
|