From 55638bcc8ecc3e18400b7feb1c8552f261cc19b3 Mon Sep 17 00:00:00 2001 From: Phil Schneider Date: Mon, 18 Mar 2024 10:08:00 +0100 Subject: [PATCH] fix(networkRegistration): adjust mail tempalte (#570) --- .../NetworkRegistrationHandler.cs | 2 +- .../NetworkRegistrationHandlerTests.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/processes/NetworkRegistration.Library/NetworkRegistrationHandler.cs b/src/processes/NetworkRegistration.Library/NetworkRegistrationHandler.cs index 78ab4b5919..3049e19b14 100644 --- a/src/processes/NetworkRegistration.Library/NetworkRegistrationHandler.cs +++ b/src/processes/NetworkRegistration.Library/NetworkRegistrationHandler.cs @@ -168,7 +168,7 @@ private async Task CreateMailProcess(IAsyncEnumerable compa KeyValuePair.Create("url", _settings.BasePortalAddress), KeyValuePair.Create("idpAlias", string.Join(",", displayNames)) }); - _mailingProcessCreation.CreateMailProcess(receiver, "CredentialRejected", mailParameters); + _mailingProcessCreation.CreateMailProcess(receiver, "OspWelcomeMail", mailParameters); } } diff --git a/tests/processes/NetworkRegistration.Library.Tests/NetworkRegistrationHandlerTests.cs b/tests/processes/NetworkRegistration.Library.Tests/NetworkRegistrationHandlerTests.cs index 42ea10e212..714b793bbc 100644 --- a/tests/processes/NetworkRegistration.Library.Tests/NetworkRegistrationHandlerTests.cs +++ b/tests/processes/NetworkRegistration.Library.Tests/NetworkRegistrationHandlerTests.cs @@ -234,11 +234,11 @@ public async Task SynchronizeUser_WithValidData_ReturnsExpected() .MustHaveHappenedOnceExactly(); A.CallTo(() => _userRepository.AttachAndModifyIdentity(user2.CompanyUserId, A>._, A>._)) .MustNotHaveHappened(); - A.CallTo(() => _mailingProcessCreation.CreateMailProcess("tony@stark.com", "CredentialRejected", A>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp1"))) + A.CallTo(() => _mailingProcessCreation.CreateMailProcess("tony@stark.com", "OspWelcomeMail", A>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp1"))) .MustHaveHappenedOnceExactly(); - A.CallTo(() => _mailingProcessCreation.CreateMailProcess("steven@strange.com", "CredentialRejected", A>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp1"))) + A.CallTo(() => _mailingProcessCreation.CreateMailProcess("steven@strange.com", "OspWelcomeMail", A>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp1"))) .MustHaveHappenedOnceExactly(); - A.CallTo(() => _mailingProcessCreation.CreateMailProcess("foo@bar.com", "CredentialRejected", A>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp2"))) + A.CallTo(() => _mailingProcessCreation.CreateMailProcess("foo@bar.com", "OspWelcomeMail", A>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp2"))) .MustHaveHappenedOnceExactly(); result.modified.Should().BeFalse();