1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

Noop services

This commit is contained in:
Kyle Spearrin 2017-01-20 22:29:01 -05:00
parent 52b8fef26f
commit b08c960cc0
2 changed files with 62 additions and 0 deletions

View File

@ -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);
}
}
}

View File

@ -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);
}
}
}