diff --git a/src/Core/Services/Implementations/NoopMailService.cs b/src/Core/Services/Implementations/NoopMailService.cs new file mode 100644 index 000000000..75d539812 --- /dev/null +++ b/src/Core/Services/Implementations/NoopMailService.cs @@ -0,0 +1,33 @@ +using System.Threading.Tasks; +using Bit.Core.Domains; + +namespace Bit.Core.Services +{ + public class NoopMailService : IMailService + { + public Task SendChangeEmailAlreadyExistsEmailAsync(string fromEmail, string toEmail) + { + return Task.FromResult(0); + } + + public Task SendChangeEmailEmailAsync(string newEmailAddress, string token) + { + return Task.FromResult(0); + } + + public Task SendMasterPasswordHintEmailAsync(string email, string hint) + { + return Task.FromResult(0); + } + + public Task SendNoMasterPasswordHintEmailAsync(string email) + { + return Task.FromResult(0); + } + + public Task SendWelcomeEmailAsync(User user) + { + return Task.FromResult(0); + } + } +} diff --git a/src/Core/Services/Implementations/NoopPushService.cs b/src/Core/Services/Implementations/NoopPushService.cs new file mode 100644 index 000000000..268874036 --- /dev/null +++ b/src/Core/Services/Implementations/NoopPushService.cs @@ -0,0 +1,29 @@ +using System; +using System.Threading.Tasks; +using Bit.Core.Domains; + +namespace Bit.Core.Services +{ + public class NoopPushService : IPushService + { + public Task PushSyncCipherCreateAsync(Cipher cipher) + { + return Task.FromResult(0); + } + + public Task PushSyncCipherDeleteAsync(Cipher cipher) + { + return Task.FromResult(0); + } + + public Task PushSyncCiphersAsync(Guid userId) + { + return Task.FromResult(0); + } + + public Task PushSyncCipherUpdateAsync(Cipher cipher) + { + return Task.FromResult(0); + } + } +}