Ploeh.Samples.Loan.CurrentPropertyExistsSpecification.IsSatisfiedBy C# (CSharp) Метод

IsSatisfiedBy() публичный Метод

public IsSatisfiedBy ( MortgageApplication application ) : bool
application Ploeh.Samples.Loan.DataCollection.MortgageApplication
Результат bool
        public bool IsSatisfiedBy(MortgageApplication application)
        {
            return application.CurrentProperty != null;
        }

Usage Example

        public void IsSatisfiedByReturnsTrueIfCurrentPropertyHasValue()
        {
            var application = new MortgageApplication
            {
                CurrentProperty = new Property()
            };
            var sut = new CurrentPropertyExistsSpecification();

            var actual = sut.IsSatisfiedBy(application);

            Assert.True(actual);
        }
All Usage Examples Of Ploeh.Samples.Loan.CurrentPropertyExistsSpecification::IsSatisfiedBy
CurrentPropertyExistsSpecification