Esempio n. 1
0
        public void GetContributionsPerYear_Should_Not_GetReturnedReversedPledges(int[] fundids, int?year)
        {
            using (var db = CMSDataContext.Create(DatabaseFixture.Host))
            {
                var contributions           = (from c in Contribution.GetContributionsPerYear(db, year, fundids) select c);
                var returnedReversedPledges = from c2 in contributions
                                              where ContributionTypeCode.ReturnedReversedTypes.Contains(c2.ContributionTypeId)
                                              select c2;

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