Exemplo n.º 1
0
 public void SmsServiceWasCalled()
 {
     MockedSmsService.AssertWasCalled(n => n.Send(
                                          Arg.Is(Badge.Owner.Mobiles[0]),
                                          Arg <string> .Matches(x => x.Contains(Badge.Owner.FirstName))
                                          ));
 }
Exemplo n.º 2
0
 public void ShouldSendSmsToOwner()
 {
     foreach (var mobileNbr in this.Declaration.RetrivedBadge.Owner.Mobiles.Values)
     {
         MockedSmsService.AssertWasCalled(n => n.Send(
                                              Arg.Is(mobileNbr),
                                              Arg <string> .Matches(x => x.Contains(this.Declaration.PhoneNumber)))
                                          );
     }
 }