From d3f6dd536f5a85a4ae6cc8e0040b6655c2e89da8 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 23 Dec 2020 11:13:21 +0100 Subject: [PATCH] Build fix --- .../Notifications/NotificationEmailSenderTests.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Notifications/NotificationEmailSenderTests.cs b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Notifications/NotificationEmailSenderTests.cs index 634f133fd..2f9db703a 100644 --- a/backend/tests/Squidex.Domain.Apps.Entities.Tests/Notifications/NotificationEmailSenderTests.cs +++ b/backend/tests/Squidex.Domain.Apps.Entities.Tests/Notifications/NotificationEmailSenderTests.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Security.Claims; +using System.Threading; using System.Threading.Tasks; using FakeItEasy; using Microsoft.Extensions.Options; @@ -105,7 +106,7 @@ namespace Squidex.Domain.Apps.Entities.Notifications { await sut.SendInviteAsync(assigner, user, appName); - A.CallTo(() => emailSender.SendAsync(user.Email, A._, A._)) + A.CallTo(() => emailSender.SendAsync(user.Email, A._, A._, A._)) .MustNotHaveHappened(); MustLogWarning(); @@ -116,7 +117,7 @@ namespace Squidex.Domain.Apps.Entities.Notifications { await sut.SendInviteAsync(assigner, user, appName); - A.CallTo(() => emailSender.SendAsync(user.Email, A._, A._)) + A.CallTo(() => emailSender.SendAsync(user.Email, A._, A._, A._)) .MustNotHaveHappened(); MustLogWarning(); @@ -127,7 +128,7 @@ namespace Squidex.Domain.Apps.Entities.Notifications { await sut.SendUsageAsync(user, appName, 100, 120); - A.CallTo(() => emailSender.SendAsync(user.Email, A._, A._)) + A.CallTo(() => emailSender.SendAsync(user.Email, A._, A._, A._)) .MustNotHaveHappened(); MustLogWarning(); @@ -143,7 +144,7 @@ namespace Squidex.Domain.Apps.Entities.Notifications await sut.SendInviteAsync(assigner, user, appName); - A.CallTo(() => emailSender.SendAsync(user.Email, "email-subject", "email-body")) + A.CallTo(() => emailSender.SendAsync(user.Email, "email-subject", "email-body", A._)) .MustHaveHappened(); } @@ -154,7 +155,7 @@ namespace Squidex.Domain.Apps.Entities.Notifications await sut.SendUsageAsync(user, appName, 100, 120); - A.CallTo(() => emailSender.SendAsync(user.Email, result, result)) + A.CallTo(() => emailSender.SendAsync(user.Email, result, result, A._)) .MustHaveHappened(); } @@ -165,7 +166,7 @@ namespace Squidex.Domain.Apps.Entities.Notifications await sut.SendInviteAsync(assigner, user, appName); - A.CallTo(() => emailSender.SendAsync(user.Email, result, result)) + A.CallTo(() => emailSender.SendAsync(user.Email, result, result, A._)) .MustHaveHappened(); }