Beispiel #1
0
 public void ClassInfoIntegationTests_FindUnPaidClasses()
 {
     using (PrivateClassesDBContext dbContext = new PrivateClassesDBContext())
     {
         ClassInfoRepo    repo = new ClassInfoRepo(dbContext);
         List <ClassInfo> res  = repo.FindMany(c => c.Orders.Where(o => !o.PaymentId.HasValue).Count() > 0).ToList();
         Assert.IsTrue(res != null && res.Count > 0);
     }
 }
Beispiel #2
0
        public void ParticipantTests_FindFullyPaidClasses_Mock()
        {
            ClassInfoRepo repo = new ClassInfoRepo(GetMockContext().Object)
            {
                IncludeNavigationProperties = false
            };
            List <ClassInfo> res = repo.FindMany(c => c.Orders.Where(o => o.PaymentId.HasValue).Count() > 0).ToList();

            Assert.IsTrue(res != null && res.Count > 0);
        }