Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
d4n3436 committed Feb 2, 2024
1 parent fe04e2f commit 0ed346e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Fergun.Tests/Modules/UrbanModuleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Fergun.Apis.Urban;
using Fergun.Interactive;
using Fergun.Modules;
using Microsoft.Extensions.Logging;
using Moq;
using Xunit;

Expand All @@ -29,7 +30,7 @@ public UrbanModuleTests()
var options = Utils.CreateMockedFergunOptions();
var interactive = new InteractiveService(_client, _interactiveConfig);

_moduleMock = new Mock<UrbanModule>(() => new UrbanModule(_localizer, options, _urbanDictionary, interactive)) { CallBase = true };
_moduleMock = new Mock<UrbanModule>(() => new UrbanModule(Mock.Of<ILogger<UrbanModule>>(), _localizer, options, _urbanDictionary, interactive)) { CallBase = true };
_contextMock.SetupGet(x => x.Interaction).Returns(_interactionMock.Object);
_contextMock.SetupGet(x => x.User).Returns(() => AutoFaker.Generate<IUser>(b => b.WithBinder(new MoqBinder())));
((IInteractionModuleBase)_moduleMock.Object).SetContext(_contextMock.Object);
Expand Down

0 comments on commit 0ed346e

Please sign in to comment.