src/Services/ConferenceManagement/Strive.Core.Tests/_TestHelpers/JoinedParticipantsRepositoryMock.cs
using Moq;
using Strive.Core.Services;
using Strive.Core.Services.ConferenceControl.Gateways;
namespace Strive.Core.Tests._TestHelpers
{
public class JoinedParticipantsRepositoryMock
{
public Mock<IJoinedParticipantsRepository> Mock { get; } = new();
public IJoinedParticipantsRepository Object => Mock.Object;
public void JoinParticipant(Participant participant)
{
Mock.Setup(x => x.IsParticipantJoined(participant)).ReturnsAsync(true);
}
public void RemoveParticipant(Participant participant)
{
Mock.Setup(x => x.IsParticipantJoined(participant)).ReturnsAsync(false);
}
}
}