public void SmsServiceWasCalled() { MockedSmsService.AssertWasCalled(n => n.Send( Arg.Is(Badge.Owner.Mobiles[0]), Arg <string> .Matches(x => x.Contains(Badge.Owner.FirstName)) )); }
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))) ); } }