feat(notifications): add user-configurable ntfy to
This commit is contained in:
1 parent
2ac2789728
commit
7a89a97bf3
15 files changed
+2310
-22
No files matched your search
@@ -117,7 +117,7 @@ public class NotificationsControllerTests
|
||||
{
|
||||
// Arrange
|
||||
var userId = Guid.NewGuid();
|
||||
var dto = new UserNotificationConfigDto(Guid.Empty, userId, false, null, false, null, "fr", false, false, null);
|
||||
var dto = new UserNotificationConfigDto(Guid.Empty, userId, false, null, false, null, null, "fr", false, false, null);
|
||||
_mediator.Send(Arg.Any<GetNotificationConfigQuery>(), Arg.Any<CancellationToken>())
|
||||
.Returns(ServiceResult<UserNotificationConfigDto>.Success(dto));
|
||||
|
||||
@@ -133,10 +133,10 @@ public class NotificationsControllerTests
|
||||
{
|
||||
// Arrange
|
||||
var request = new UpdateNotificationConfigRequest(
|
||||
true, "test@test.com", true, "http://ntfy:80", "fr", true, false, null);
|
||||
true, "test@test.com", true, "http://ntfy:80", null, "fr", true, false, null);
|
||||
var dto = new UserNotificationConfigDto(
|
||||
Guid.NewGuid(), Guid.NewGuid(), true, "test@test.com",
|
||||
true, "http://ntfy:80", "fr", true, false, null);
|
||||
true, "http://ntfy:80", null, "fr", true, false, null);
|
||||
_mediator.Send(Arg.Any<UpdateNotificationConfigCommand>(), Arg.Any<CancellationToken>())
|
||||
.Returns(ServiceResult<UserNotificationConfigDto>.Success(dto));
|
||||
|
||||
|
||||
Reference in new issue
Block a user