aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-10-25 18:36:02 +0800
committer杨宇千 <crupest@outlook.com>2019-10-25 18:36:02 +0800
commit2528710897c6995eaa6b04a63c1daa8cdffbf29d (patch)
treec6ec0a916c78a02b36113fb62f0e919019df6cfc /Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs
parent20089ee8a29f9c59a28779baadf5560bca9f7be1 (diff)
downloadtimeline-2528710897c6995eaa6b04a63c1daa8cdffbf29d.tar.gz
timeline-2528710897c6995eaa6b04a63c1daa8cdffbf29d.tar.bz2
timeline-2528710897c6995eaa6b04a63c1daa8cdffbf29d.zip
Add NeutralResourcesLanguage. Conform to best practices.
Diffstat (limited to 'Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs')
-rw-r--r--Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs b/Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs
deleted file mode 100644
index 4084dd8f..00000000
--- a/Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using Microsoft.Extensions.Localization;
-using Microsoft.Extensions.Logging.Abstractions;
-using Microsoft.Extensions.Options;
-
-namespace Timeline.Tests.Mock.Services
-{
- internal static class TestStringLocalizerFactory
- {
- internal static IStringLocalizerFactory Create()
- {
- return new ResourceManagerStringLocalizerFactory(
- Options.Create(new LocalizationOptions()
- {
- ResourcesPath = "Resource"
- }),
- NullLoggerFactory.Instance
- );
- }
-
- internal static IStringLocalizer<T> Create<T>(this IStringLocalizerFactory factory)
- {
- return new StringLocalizer<T>(factory);
- }
- }
-}