Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var sender = new Moq.Mock<ICommsSender>();
- var communication = new Moq.Mock<Communication>();
- communication.Setup(p => p.Execute()).Returns(new SmsCommunicationResult(response));
- sender.Setup(x =>
- x.Send<SmsCommunicationResult>(communication.Object))
- .Returns(new SmsCommunicationResult(response));
- var result = sender.Object.Send<SmsCommunicationResult>(communication.Object);
- Assert.That(result.Success, Is.True);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement