mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
Revert filescoped (#2227)
* Revert "Add git blame entry (#2226)" This reverts commit239286737d
. * Revert "Turn on file scoped namespaces (#2225)" This reverts commit34fb4cca2a
.
This commit is contained in:
@ -4,34 +4,35 @@ using Microsoft.Extensions.Logging;
|
||||
using NSubstitute;
|
||||
using Xunit;
|
||||
|
||||
namespace Bit.Core.Test.Services;
|
||||
|
||||
public class MailKitSmtpMailDeliveryServiceTests
|
||||
namespace Bit.Core.Test.Services
|
||||
{
|
||||
private readonly MailKitSmtpMailDeliveryService _sut;
|
||||
|
||||
private readonly GlobalSettings _globalSettings;
|
||||
private readonly ILogger<MailKitSmtpMailDeliveryService> _logger;
|
||||
|
||||
public MailKitSmtpMailDeliveryServiceTests()
|
||||
public class MailKitSmtpMailDeliveryServiceTests
|
||||
{
|
||||
_globalSettings = new GlobalSettings();
|
||||
_logger = Substitute.For<ILogger<MailKitSmtpMailDeliveryService>>();
|
||||
private readonly MailKitSmtpMailDeliveryService _sut;
|
||||
|
||||
_globalSettings.Mail.Smtp.Host = "unittests.example.com";
|
||||
_globalSettings.Mail.ReplyToEmail = "noreply@unittests.example.com";
|
||||
private readonly GlobalSettings _globalSettings;
|
||||
private readonly ILogger<MailKitSmtpMailDeliveryService> _logger;
|
||||
|
||||
_sut = new MailKitSmtpMailDeliveryService(
|
||||
_globalSettings,
|
||||
_logger
|
||||
);
|
||||
}
|
||||
public MailKitSmtpMailDeliveryServiceTests()
|
||||
{
|
||||
_globalSettings = new GlobalSettings();
|
||||
_logger = Substitute.For<ILogger<MailKitSmtpMailDeliveryService>>();
|
||||
|
||||
// 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);
|
||||
_globalSettings.Mail.Smtp.Host = "unittests.example.com";
|
||||
_globalSettings.Mail.ReplyToEmail = "noreply@unittests.example.com";
|
||||
|
||||
_sut = new MailKitSmtpMailDeliveryService(
|
||||
_globalSettings,
|
||||
_logger
|
||||
);
|
||||
}
|
||||
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user