aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/Helpers/TestApplication.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-05-15 16:01:21 +0800
committercrupest <crupest@outlook.com>2021-05-15 16:01:21 +0800
commit49b0cb7b465561447b8d4693ba988b13e0e1b57a (patch)
tree4c533d940af0b2691619a960f439f5f33129a9ff /BackEnd/Timeline.Tests/Helpers/TestApplication.cs
parent741230818e8c8093f7ead04c7df1c21a17cceae4 (diff)
downloadtimeline-49b0cb7b465561447b8d4693ba988b13e0e1b57a.tar.gz
timeline-49b0cb7b465561447b8d4693ba988b13e0e1b57a.tar.bz2
timeline-49b0cb7b465561447b8d4693ba988b13e0e1b57a.zip
feat: Timeline post change notification with signalr.
Diffstat (limited to 'BackEnd/Timeline.Tests/Helpers/TestApplication.cs')
-rw-r--r--BackEnd/Timeline.Tests/Helpers/TestApplication.cs7
1 files changed, 7 insertions, 0 deletions
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<IServer>();
+ }
}
}