1
0
mirror of https://github.com/bitwarden/server synced 2026-01-14 06:23:46 +00:00

Revert "PM-18939 refactoring send service to 'cqrs' (#5652)"

This reverts commit 818934487f.
This commit is contained in:
✨ Audrey ✨
2025-06-11 15:26:00 -04:00
parent 1f9849da10
commit 0eeea7df63
32 changed files with 1346 additions and 2204 deletions

View File

@@ -23,11 +23,11 @@ public class SendRotationValidatorTests
public async Task ValidateAsync_Success()
{
// Arrange
var sendAuthorizationService = Substitute.For<ISendAuthorizationService>();
var sendService = Substitute.For<ISendService>();
var sendRepository = Substitute.For<ISendRepository>();
var sut = new SendRotationValidator(
sendAuthorizationService,
sendService,
sendRepository
);
@@ -52,11 +52,11 @@ public class SendRotationValidatorTests
public async Task ValidateAsync_SendNotReturnedFromRepository_NotIncludedInOutput()
{
// Arrange
var sendAuthorizationService = Substitute.For<ISendAuthorizationService>();
var sendService = Substitute.For<ISendService>();
var sendRepository = Substitute.For<ISendRepository>();
var sut = new SendRotationValidator(
sendAuthorizationService,
sendService,
sendRepository
);
@@ -76,11 +76,11 @@ public class SendRotationValidatorTests
public async Task ValidateAsync_InputMissingUserSend_Throws()
{
// Arrange
var sendAuthorizationService = Substitute.For<ISendAuthorizationService>();
var sendService = Substitute.For<ISendService>();
var sendRepository = Substitute.For<ISendRepository>();
var sut = new SendRotationValidator(
sendAuthorizationService,
sendService,
sendRepository
);