1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-03 18:57:35 +01:00
bitwarden-server/test/Core.Test/Services/AmazonSesMailDeliveryServiceTests.cs

44 lines
1.3 KiB
C#
Raw Normal View History

using System;
using Bit.Core.Services;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
using NSubstitute;
using Xunit;
namespace Bit.Core.Test.Services
{
public class AmazonSesMailDeliveryServiceTests : IDisposable
{
private readonly AmazonSesMailDeliveryService _sut;
private readonly GlobalSettings _globalSettings;
private readonly IHostingEnvironment _hostingEnvironment;
private readonly ILogger<AmazonSesMailDeliveryService> _logger;
public AmazonSesMailDeliveryServiceTests()
{
_globalSettings = new GlobalSettings();
_hostingEnvironment = Substitute.For<IHostingEnvironment>();
_logger = Substitute.For<ILogger<AmazonSesMailDeliveryService>>();
_sut = new AmazonSesMailDeliveryService(
_globalSettings,
_hostingEnvironment,
_logger
);
}
public void Dispose()
{
_sut?.Dispose();
}
// Remove this test when we add actual tests. It only proves that
// we've properly constructed the system under test.
[Fact(Skip = "Needs additional work")]
public void ServiceExists()
{
Assert.NotNull(_sut);
}
}
}