Skip to content

Instantly share code, notes, and snippets.

@obegendi
Created July 21, 2019 14:59
Show Gist options
  • Save obegendi/371b1f9e8872d04eb52d1605f974e502 to your computer and use it in GitHub Desktop.
Save obegendi/371b1f9e8872d04eb52d1605f974e502 to your computer and use it in GitHub Desktop.
[Fact]
public void ReferInvalidApplications()
{
Mock<IFrequentFlyerNumberValidator> mockValidator =
new Mock<IFrequentFlyerNumberValidator>(MockBehavior.Strict);
//mockValidator.Setup(x => x.IsValid(It.IsAny<string>())).Returns(false);
var sut = new CreditApplicationEvaluator(mockValidator.Object);
var application = new CreditApplication();
CreditApplicationDecision decision = sut.Evaluate(application);
Assert.Equal(CreditApplicationDecision.ReferredToHuman, decision);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment