diff --git a/tests/Shop.UnitTests/Query/Profiles/AutoMapperTests.cs b/tests/Shop.UnitTests/Query/Profiles/AutoMapperTests.cs index ff3e72c..3c310d2 100644 --- a/tests/Shop.UnitTests/Query/Profiles/AutoMapperTests.cs +++ b/tests/Shop.UnitTests/Query/Profiles/AutoMapperTests.cs @@ -1,5 +1,6 @@ using AutoMapper; using FluentAssertions; +using Microsoft.Extensions.Logging; using Shop.Query.Profiles; using Xunit; using Xunit.Categories; @@ -13,7 +14,9 @@ public class AutoMapperTests public void Should_Mapper_ConfigurationIsValid() { // Arrange - var mapper = new Mapper(new MapperConfiguration(cfg => cfg.AddProfile())); + var loggerFactory = NSubstitute.Substitute.For(); + + var mapper = new Mapper(new MapperConfiguration(cfg => cfg.AddProfile(), loggerFactory)); // Act // REF: https://fluentassertions.com/exceptions/