Created
July 21, 2019 14:59
-
-
Save obegendi/371b1f9e8872d04eb52d1605f974e502 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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