public void SendProviderReferralEmailAsync_Is_Called_Exactly_Once()
 {
     _referralEmailService
     .Received(1)
     .SendProviderReferralEmailAsync(
         Arg.Any <int>(),
         Arg.Any <IEnumerable <int> >(),
         Arg.Any <int>(),
         Arg.Any <string>());
 }
Exemplo n.º 2
0
 public void SendEmployerReferralEmailAsync_Is_Called_Exactly_Once_With_Expected_Parameters()
 {
     _referralEmailService
     .Received(1)
     .SendEmployerReferralEmailAsync(
         Arg.Is <int>(id => id == 1),
         // ReSharper disable PossibleMultipleEnumeration
         Arg.Is <IEnumerable <int> >(p => p.Count() == 1 && p.First() == 101),
         // ReSharper restore PossibleMultipleEnumeration
         Arg.Is <int>(id => id == 10),
         Arg.Is <string>(u => u == "System"));
 }