using Moq;
using NUnit.Framework;

namespace eSuite.API.UnitTests.Controllers.InternalMessagingControllerUnitTests;

[TestFixture]
public class PostClearOldEmailActionsUnitTests : InternalMessagingControllerTestBase
{
    [SetUp]
    public override async Task Setup()
    {
        await base.Setup();
    }

    [Test]
    public async Task WhenCalled_CallsMessageSender()
    {
        //Arrange

        //Act
        await _internalMessagingController.PostClearOldEmailActions(CancellationToken.None);

        //Assert
        _databaseMessageSenderMock.Verify(x => x.PostClearOldEmailActions(), Times.Once);
    }
}