File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
RealTimeWeatherMonitoringApp/Presentation/Utility
RealTimeWeatherMonitoringTest/Presentation Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ private static void InjectApplication(IServiceCollection services)
4747 services . AddSingleton < IAutoParsingService < WeatherData > > ( _ =>
4848 {
4949 var service = new AutoParsingService < WeatherData > ( ) ;
50- foreach ( var parserType in Configuration . GetAllTypes ( Configuration . ParsersNamespace ) )
50+ foreach ( var parserType in DirectoryStructureUtility . GetAllTypes ( DirectoryStructureUtility . ParsersNamespace ) )
5151 {
5252 if ( Activator . CreateInstance ( parserType ) is IParsingStrategy < WeatherData > parser )
5353 service . AddStrategy ( parser ) ;
Original file line number Diff line number Diff line change 22
33namespace RealTimeWeatherMonitoringApp . Presentation . Utility ;
44
5- public static class Configuration
5+ public static class DirectoryStructureUtility
66{
77 /// <summary>
88 /// Where all implementations of IParsingStrategy should reside.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public void IParsingStrategyImplementations_ResideInParsersDirectory()
1414 foreach ( var type in GetImplementationsOfGenericInterface ( typeof ( IParsingStrategy < > ) ) )
1515 {
1616 type . Namespace . Should ( ) . NotBeNull ( )
17- . And . StartWith ( Configuration . ParsersNamespace ,
17+ . And . StartWith ( DirectoryStructureUtility . ParsersNamespace ,
1818 "because all IParsingStrategy implementations should reside in the Parsers directory" ) ;
1919 }
2020 }
You can’t perform that action at this time.
0 commit comments