Example #1
0
        public void GetContributions_Should_Not_Fetch_ReturnedReversedPledges()
        {
            using (var db = CMSDataContext.Create(DatabaseFixture.Host))
            {
                var contributions           = (from c in Contribution.GetContributions(db) select c);
                var returnedReversedPledges = from c2 in contributions
                                              where ContributionTypeCode.ReturnedReversedTypes.Contains(c2.ContributionTypeId)
                                              select c2;

                returnedReversedPledges.Count().ShouldBeLessThan(1);
            }
        }