Skip to content

Commit

Permalink
Fix AdminSiteMapServiceTests
Browse files Browse the repository at this point in the history
  • Loading branch information
support committed Sep 30, 2023
1 parent 532e83a commit 30b78c2
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Grand.Domain.Admin;
using Grand.Domain.Data;
using Grand.Infrastructure.Caching;
using MediatR;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;

Expand All @@ -13,13 +14,15 @@ public class AdminSiteMapServiceTests
private Mock<IRepository<AdminSiteMap>> _repositoryMock;
private Mock<ICacheBase> _cacheMock;
private AdminSiteMapService _service;

private Mock<IMediator> _mediatorMock;

[TestInitialize]
public void Init()
{
_repositoryMock = new Mock<IRepository<AdminSiteMap>>();
_cacheMock = new Mock<ICacheBase>();
_service = new AdminSiteMapService(_repositoryMock.Object,_cacheMock.Object);
_mediatorMock = new Mock<IMediator>();
_service = new AdminSiteMapService(_repositoryMock.Object,_cacheMock.Object, _mediatorMock.Object);
}

[TestMethod]
Expand Down

0 comments on commit 30b78c2

Please sign in to comment.