diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-25 18:46:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-25 18:46:01 +0800 |
commit | a175f8328d7a6c36464676d54fc50d03e64be0af (patch) | |
tree | c6ec0a916c78a02b36113fb62f0e919019df6cfc /Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs | |
parent | 681e2cc9ecaeefd883a7c6645374926c184fba5d (diff) | |
parent | 5790142f81f2a94ad073834b1534acbf9b02ea3c (diff) | |
download | timeline-a175f8328d7a6c36464676d54fc50d03e64be0af.tar.gz timeline-a175f8328d7a6c36464676d54fc50d03e64be0af.tar.bz2 timeline-a175f8328d7a6c36464676d54fc50d03e64be0af.zip |
Merge pull request #52 from crupest/i18n
Add NeutralResourcesLanguage. Conform to best practices.
Diffstat (limited to 'Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs')
-rw-r--r-- | Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs | 25 |
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);
- }
- }
-}
|