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 test

KrzysztofPajak6df34c4889be
diff --git a/src/Tests/Grand.Business.Marketing.Tests/Services/Documents/DocumentTypeServiceTests.cs b/src/Tests/Grand.Business.Marketing.Tests/Services/Documents/DocumentTypeServiceTests.cs
index 29921d09d..ba125d85e 100644
--- a/src/Tests/Grand.Business.Marketing.Tests/Services/Documents/DocumentTypeServiceTests.cs
+++ b/src/Tests/Grand.Business.Marketing.Tests/Services/Documents/DocumentTypeServiceTests.cs
@@ -3,6 +3,7 @@ using Grand.Domain.Data;
using Grand.Domain.Data.Mongo;
using Grand.Domain.Documents;
using Grand.Infrastructure.Events;
+using Grand.SharedKernel.Extensions;
using MediatR;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
@@ -25,6 +26,8 @@ namespace Grand.Business.Marketing.Tests.Services.Documents
[TestInitialize()]
public void Init()
{
+ CommonPath.BaseDirectory = "";
+
_mediatorMock = new Mock<IMediator>();
_documentTypeRepositoryMock = new Mock<IRepository<DocumentType>>();
var _mongoQueryableMock = new Mock<MongoRepository<DocumentType>>();