From 49b0cb7b465561447b8d4693ba988b13e0e1b57a Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 15 May 2021 16:01:21 +0800 Subject: feat: Timeline post change notification with signalr. --- BackEnd/Timeline.Tests/Helpers/TestApplication.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'BackEnd/Timeline.Tests/Helpers/TestApplication.cs') diff --git a/BackEnd/Timeline.Tests/Helpers/TestApplication.cs b/BackEnd/Timeline.Tests/Helpers/TestApplication.cs index e0db966c..723ef500 100644 --- a/BackEnd/Timeline.Tests/Helpers/TestApplication.cs +++ b/BackEnd/Timeline.Tests/Helpers/TestApplication.cs @@ -1,6 +1,8 @@ using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Hosting.Server; using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using System.Collections.Generic; using System.IO; @@ -46,5 +48,10 @@ namespace Timeline.Tests.Helpers Directory.Delete(WorkDirectory, true); } + + public TestServer Server + { + get => (TestServer)Host.Services.GetRequiredService(); + } } } -- cgit v1.2.3