From 5790142f81f2a94ad073834b1534acbf9b02ea3c Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Fri, 25 Oct 2019 18:36:02 +0800 Subject: Add NeutralResourcesLanguage. Conform to best practices. --- .../Mock/Services/TestStringLocalizerFactory.cs | 25 ---------------------- 1 file changed, 25 deletions(-) delete mode 100644 Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs (limited to 'Timeline.Tests/Mock/Services/TestStringLocalizerFactory.cs') 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 Create(this IStringLocalizerFactory factory) - { - return new StringLocalizer(factory); - } - } -} -- cgit v1.2.3