Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Fix tests

support8ccf099389f5
diff --git a/src/Tests/Grand.Business.Common.Tests/Services/Addresses/AddressAttributeParserTests.cs b/src/Tests/Grand.Business.Common.Tests/Services/Addresses/AddressAttributeParserTests.cs
index 74db6457f..acf092835 100644
--- a/src/Tests/Grand.Business.Common.Tests/Services/Addresses/AddressAttributeParserTests.cs
+++ b/src/Tests/Grand.Business.Common.Tests/Services/Addresses/AddressAttributeParserTests.cs
@@ -20,7 +20,7 @@ namespace Grand.Business.Common.Tests.Services.Addresses
{
_atrService = new Mock<IAddressAttributeService>();
_translationService = new Mock<ITranslationService>();
- _parser = new AddressAttributeParser(_atrService.Object, _translationService.Object);
+ _parser = new AddressAttributeParser(_atrService.Object);
customAtr = new List<CustomAttribute>()
{
new CustomAttribute(){Key="key1",Value="value1" },
diff --git a/src/Tests/Grand.Business.Customers.Tests/Services/CustomerAttributeParserTests.cs b/src/Tests/Grand.Business.Customers.Tests/Services/CustomerAttributeParserTests.cs
index fdb1b4247..c9a7f3a3b 100644
--- a/src/Tests/Grand.Business.Customers.Tests/Services/CustomerAttributeParserTests.cs
+++ b/src/Tests/Grand.Business.Customers.Tests/Services/CustomerAttributeParserTests.cs
@@ -25,7 +25,7 @@ namespace Grand.Business.Customers.Tests.Services
_translationServiceMock.Setup(x => x.GetResource(It.IsAny<string>())).Returns("Warning{0}");
}
- _parser = new CustomerAttributeParser(_customerAtrServiceMock.Object, _translationServiceMock.Object);
+ _parser = new CustomerAttributeParser(_customerAtrServiceMock.Object);
customAtr = new List<CustomAttribute>()
{
new CustomAttribute(){Key="key1",Value="value1" },
diff --git a/src/Tests/Grand.Business.Customers.Tests/Services/CustomerManagerServiceTests.cs b/src/Tests/Grand.Business.Customers.Tests/Services/CustomerManagerServiceTests.cs
index 74d9980e9..07436deb0 100644
--- a/src/Tests/Grand.Business.Customers.Tests/Services/CustomerManagerServiceTests.cs
+++ b/src/Tests/Grand.Business.Customers.Tests/Services/CustomerManagerServiceTests.cs
@@ -38,7 +38,7 @@ namespace Grand.Business.Customers.Tests.Services
_customerSettings.AllowUsersToChangeUsernames = true;
_customerManagerService = new CustomerManagerService(_customerServiceMock.Object, _groupServiceMock.Object,
- _encryptionServiceMock.Object, _translationServiceMock.Object, _mediatorMock.Object, _userFieldServiceMock.Object,
+ _encryptionServiceMock.Object, _mediatorMock.Object, _userFieldServiceMock.Object,
_customerHistoryPasswordServiceMock.Object, _customerSettings);
}