Skip to content

Commit

Permalink
fix(networkRegistration): adjust mail tempalte (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil91 authored Mar 18, 2024
1 parent eda8d0d commit 55638bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private async Task CreateMailProcess(IAsyncEnumerable<UserMailInformation> compa
KeyValuePair.Create("url", _settings.BasePortalAddress),
KeyValuePair.Create("idpAlias", string.Join(",", displayNames))
});
_mailingProcessCreation.CreateMailProcess(receiver, "CredentialRejected", mailParameters);
_mailingProcessCreation.CreateMailProcess(receiver, "OspWelcomeMail", mailParameters);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ public async Task SynchronizeUser_WithValidData_ReturnsExpected()
.MustHaveHappenedOnceExactly();
A.CallTo(() => _userRepository.AttachAndModifyIdentity(user2.CompanyUserId, A<Action<Identity>>._, A<Action<Identity>>._))
.MustNotHaveHappened();
A.CallTo(() => _mailingProcessCreation.CreateMailProcess("[email protected]", "CredentialRejected", A<IReadOnlyDictionary<string, string>>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp1")))
A.CallTo(() => _mailingProcessCreation.CreateMailProcess("[email protected]", "OspWelcomeMail", A<IReadOnlyDictionary<string, string>>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp1")))
.MustHaveHappenedOnceExactly();
A.CallTo(() => _mailingProcessCreation.CreateMailProcess("[email protected]", "CredentialRejected", A<IReadOnlyDictionary<string, string>>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp1")))
A.CallTo(() => _mailingProcessCreation.CreateMailProcess("[email protected]", "OspWelcomeMail", A<IReadOnlyDictionary<string, string>>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp1")))
.MustHaveHappenedOnceExactly();
A.CallTo(() => _mailingProcessCreation.CreateMailProcess("[email protected]", "CredentialRejected", A<IReadOnlyDictionary<string, string>>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp2")))
A.CallTo(() => _mailingProcessCreation.CreateMailProcess("[email protected]", "OspWelcomeMail", A<IReadOnlyDictionary<string, string>>.That.Matches(x => x["idpAlias"] == "DisplayName for Idp2")))
.MustHaveHappenedOnceExactly();

result.modified.Should().BeFalse();
Expand Down

0 comments on commit 55638bc

Please sign in to comment.