public void SutDoesNotEqualAnonymousObject()
        {
            var sut = new DesiredLoanTypeMortgageApplicationSpecification();
            var anonymous = new object();

            var actual = sut.Equals(anonymous);

            Assert.False(actual);
        }
        public void IsSatisfiedByReturnsCorrectResult(
            LoanType matchingLoanType,
            LoanType desiredLoanType,
            bool expected)
        {
            var sut = new DesiredLoanTypeMortgageApplicationSpecification
            {
                MatchingLoanType = matchingLoanType
            };
            var application = new MortgageApplication
            {
                DesiredLoanType = desiredLoanType
            };

            var actual = sut.IsSatisfiedBy(application);

            Assert.Equal(expected, actual);
        }
        public void EqualsReturnsCorrectResult(
            LoanType sutLoanType,
            LoanType otherLoanType,
            bool expected)
        {
            var sut = new DesiredLoanTypeMortgageApplicationSpecification
            {
                MatchingLoanType = sutLoanType
            };
            var other = new DesiredLoanTypeMortgageApplicationSpecification
            {
                MatchingLoanType = otherLoanType
            };

            var actual = sut.Equals(other);

            Assert.Equal(expected, actual);
        }
 public void SutIsMortgageApplicationSpecification()
 {
     var sut = new DesiredLoanTypeMortgageApplicationSpecification();
     Assert.IsAssignableFrom<IMortgageApplicationSpecification>(sut);
 }