public void Send(string password, string text, string cellPhone)
        {
            smsService.Setup(x => x.Send(password, text, cellPhone)).ReturnsAsync(true);
            var result = smsServiceHelper.Send(password, text, cellPhone);

            smsService.Verify(x => x.Send(password, text, cellPhone));
            Assert.IsTrue(result);
        }
Beispiel #2
0
        public void Send(string password, string text, string cellPhone)
        {
            _smsService.Setup(x => x.Send(password, text, cellPhone)).ReturnsAsync(true);
            var result = _smsServiceHelper.Send(password, text, cellPhone);

            _smsService.Verify(x => x.Send(password, text, cellPhone));
            result.Should().BeTrue();
        }