Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticFragilist committed Apr 6, 2024
1 parent 8ca73b4 commit 59165ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Tests/Services/EventServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public class EventServiceTests
private readonly Mock<IFileShareService> _mockFileShareService;
private readonly Mock<IEmailService> _mockEmailService;

private readonly Mock<IConfiguration> _mockConfig;
public EventServiceTests()
{
_mockEventRepository = new Mock<IEventRepository>();
Expand All @@ -182,7 +183,10 @@ public EventServiceTests()
_mockFileShareService = new Mock<IFileShareService>();
_mockEmailService = new Mock<IEmailService>();

_mockConfig = new Mock<IConfiguration>();

_eventService = new EventService(
_mockConfig.Object,
_mockEventRepository.Object,
_mockTagRepository.Object,
_mockOrganizerRepository.Object,
Expand Down Expand Up @@ -412,6 +416,7 @@ public void UpdateEvent_ShouldReturnTrue_WhenEventIsUpdatedSuccessfully()
_mockOrganizerRepository.Setup(repo => repo.Get(It.IsAny<Guid>())).Returns(new Organizer { Id = userId });

_eventService = new EventService(
_mockConfig.Object,
_mockEventRepository.Object,
_mockTagRepository.Object,
_mockOrganizerRepository.Object,
Expand Down

0 comments on commit 59165ed

Please sign in to comment.