From b08c960cc0a46d03bf32c18eb0787edecd770e5a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 20 Jan 2017 22:29:01 -0500 Subject: [PATCH] Noop services --- .../Implementations/NoopMailService.cs | 33 +++++++++++++++++++ .../Implementations/NoopPushService.cs | 29 ++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 src/Core/Services/Implementations/NoopMailService.cs create mode 100644 src/Core/Services/Implementations/NoopPushService.cs 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); + } + } +}