2019-07-06 05:35:54 +02:00
|
|
|
using System;
|
|
|
|
using Bit.Core.Services;
|
2021-02-22 22:35:16 +01:00
|
|
|
using Bit.Core.Settings;
|
2019-07-06 05:35:54 +02:00
|
|
|
using NSubstitute;
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
namespace Bit.Core.Test.Services
|
|
|
|
{
|
|
|
|
public class HandlebarsMailServiceTests
|
|
|
|
{
|
|
|
|
private readonly HandlebarsMailService _sut;
|
|
|
|
|
|
|
|
private readonly GlobalSettings _globalSettings;
|
|
|
|
private readonly IMailDeliveryService _mailDeliveryService;
|
2021-05-17 16:43:02 +02:00
|
|
|
private readonly IMailEnqueuingService _mailEnqueuingService;
|
2019-07-06 05:35:54 +02:00
|
|
|
|
|
|
|
public HandlebarsMailServiceTests()
|
|
|
|
{
|
|
|
|
_globalSettings = new GlobalSettings();
|
|
|
|
_mailDeliveryService = Substitute.For<IMailDeliveryService>();
|
2021-05-17 16:43:02 +02:00
|
|
|
_mailEnqueuingService = Substitute.For<IMailEnqueuingService>();
|
2019-07-06 05:35:54 +02:00
|
|
|
|
|
|
|
_sut = new HandlebarsMailService(
|
|
|
|
_globalSettings,
|
2021-05-17 16:43:02 +02:00
|
|
|
_mailDeliveryService,
|
|
|
|
_mailEnqueuingService
|
2019-07-06 05:35:54 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Remove this test when we add actual tests. It only proves that
|
|
|
|
// we've properly constructed the system under test.
|
|
|
|
[Fact]
|
|
|
|
public void ServiceExists()
|
|
|
|
{
|
|
|
|
Assert.NotNull(_sut);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|