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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Fix test
supportfe164579327e
diff --git a/src/Tests/Grand.Business.Common.Tests/Events/GroupDeletedEventHandlerTests.cs b/src/Tests/Grand.Business.Common.Tests/Events/GroupDeletedEventHandlerTests.csindex 4c1e7433f..6dc45d51f 100644--- a/src/Tests/Grand.Business.Common.Tests/Events/GroupDeletedEventHandlerTests.cs+++ b/src/Tests/Grand.Business.Common.Tests/Events/GroupDeletedEventHandlerTests.cs@@ -1,7 +1,12 @@using Grand.Data.Tests.MongoDb;+using Grand.Domain.Catalog;using Grand.Domain.Customers;using Grand.Domain.Data;+using Grand.Infrastructure.Caching;+using Grand.Infrastructure.Tests.Caching;+using MediatR;using Microsoft.VisualStudio.TestTools.UnitTesting;+using Moq;namespace Grand.Business.Common.Events.Tests{@@ -10,13 +15,17 @@ namespace Grand.Business.Common.Events.Tests{private IRepository<Customer> _repository;+ private IRepository<Product> _product;private GroupDeletedEventHandler _handler;-+ private MemoryCacheBase _cacheBase;[TestInitialize()]public void Init(){_repository = new MongoDBRepositoryTest<Customer>();- _handler = new GroupDeletedEventHandler(_repository);+ _product = new MongoDBRepositoryTest<Product>();+ _cacheBase = new MemoryCacheBase(MemoryCacheTest.Get(), new Mock<IMediator>().Object);++ _handler = new GroupDeletedEventHandler(_repository, _product, _cacheBase);}[TestMethod()]