File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11using AutoMapper ;
22using AutoMapper . Extensions . EnumMapping ;
33using ECER . Infrastructure . Common ;
4+ using Microsoft . Extensions . Logging ;
5+ using Microsoft . Extensions . Logging . Abstractions ;
46
57namespace ECER . Tests . Unit ;
68
@@ -9,11 +11,13 @@ public class AutoMapperValidation
911 [ Fact ]
1012 public void Validate ( )
1113 {
14+ var loggerFactory = NullLoggerFactory . Instance ;
15+
1216 var mapperConfig = new MapperConfiguration ( cfg =>
1317 {
1418 cfg . AddMaps ( ReflectionExtensions . DiscoverLocalAessemblies ( prefix : "ECER" ) ) ;
1519 cfg . EnableEnumMappingValidation ( ) ;
16- } , loggerFactory : null ) ; // v15 requires this overload
20+ } , loggerFactory : loggerFactory ) ; // v15 requires this overload
1721
1822 mapperConfig . AssertConfigurationIsValid ( ) ;
1923 }
You can’t perform that action at this time.
0 commit comments