public async Task ProviderApprovedCohort_PublishedSendEmailToEmployerCommand_WithCorrectTemplate(long?transferSenderId, string expectedTemplate) { var f = new NotificationsPublisherTestsFixtures().SetTransferSenderIdAndLastActionToApprove(transferSenderId); await f.Sut.ProviderApprovedCohort(f.Commitment); f.VerifyTemplateIsUsed(expectedTemplate); }
public async Task ProviderAmendedCohort_PublishedSendEmailToEmployerCommand_WithCorrectTemplate() { var f = new NotificationsPublisherTestsFixtures(); await f.Sut.ProviderAmendedCohort(f.Commitment); f.VerifyTemplateIsUsed(NotificationsPublisher.AmendedTemplate); }