コード例 #1
0
        public void BankAccountRepositoryPagedMethodReturnEntitiesInPageFashion()
        {
            //Arrange
            var bankAccountRepository = new BankAccountRepository(fixture.unitOfWork, fixture.bankAccountLogger);

            //Act
            var pageI  = bankAccountRepository.GetPaged(0, 1, b => b.Id, false);
            var pageII = bankAccountRepository.GetPaged(1, 1, b => b.Id, false);

            //Assert
            Assert.NotNull(pageI);
            Assert.True(pageI.Count() == 1);

            Assert.NotNull(pageII);
            Assert.True(pageII.Count() == 1);

            Assert.False(pageI.Intersect(pageII).Any());
        }
コード例 #2
0
        public void BankAccountRepositoryPagedMethodReturnEntitiesInPageFashion()
        {
            //Arrange
            var unitOfWork            = new MainBCUnitOfWork();
            var bankAccountRepository = new BankAccountRepository(unitOfWork);

            //Act
            var pageI  = bankAccountRepository.GetPaged(0, 1, b => b.Id, false);
            var pageII = bankAccountRepository.GetPaged(1, 1, b => b.Id, false);

            //Assert
            Assert.IsNotNull(pageI);
            Assert.IsTrue(pageI.Count() == 1);

            Assert.IsNotNull(pageII);
            Assert.IsTrue(pageII.Count() == 1);

            Assert.IsFalse(pageI.Intersect(pageII).Any());
        }
コード例 #3
0
      public void BankAccountRepositoryPagedMethodReturnEntitiesInPageFashion()
      {
         //Arrange
         var unitOfWork = new MainBcUnitOfWork();
         var bankAccountRepository = new BankAccountRepository(unitOfWork);

         //Act
         var pageI = bankAccountRepository.GetPaged(0, 1, b => b.Id, false);
         var pageIi = bankAccountRepository.GetPaged(1, 1, b => b.Id, false);

         //Assert
         Assert.IsNotNull(pageI);
         Assert.IsTrue(pageI.Count() == 1);

         Assert.IsNotNull(pageIi);
         Assert.IsTrue(pageIi.Count() == 1);

         Assert.IsFalse(pageI.Intersect(pageIi).Any());
      }