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 | 6b7fde00f317cca53fb1675e0ccddd863b0962b2 (patch) | |
tree | e1091ffcf9e3571c1a9de4a71b12f0527397af19 /Timeline.Tests/Helpers/MyTestLoggerFactory.cs | |
parent | 2d672de8ea109c923d5a8697e44d5cbbf976ead2 (diff) | |
parent | c7980afb3098acf4ea13cd4972d37e925248bae4 (diff) | |
download | timeline-6b7fde00f317cca53fb1675e0ccddd863b0962b2.tar.gz timeline-6b7fde00f317cca53fb1675e0ccddd863b0962b2.tar.bz2 timeline-6b7fde00f317cca53fb1675e0ccddd863b0962b2.zip |
Merge pull request #43 from crupest/avatar
Add avatar feature.
Diffstat (limited to 'Timeline.Tests/Helpers/MyTestLoggerFactory.cs')
-rw-r--r-- | Timeline.Tests/Helpers/MyTestLoggerFactory.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Timeline.Tests/Helpers/MyTestLoggerFactory.cs b/Timeline.Tests/Helpers/MyTestLoggerFactory.cs new file mode 100644 index 00000000..40c6a77e --- /dev/null +++ b/Timeline.Tests/Helpers/MyTestLoggerFactory.cs @@ -0,0 +1,14 @@ +using Microsoft.Extensions.Logging;
+using Microsoft.Extensions.Logging.Testing;
+using Xunit.Abstractions;
+
+namespace Timeline.Tests.Helpers
+{
+ public static class MyTestLoggerFactory
+ {
+ public static LoggerFactory Create(ITestOutputHelper outputHelper)
+ {
+ return new LoggerFactory(new[] { new XunitLoggerProvider(outputHelper) });
+ }
+ }
+}
|