Beispiel #1
0
        public void TestFindEntiesWithSimplePaging(EmployeeDto _EmployeeDto)
        {
            var  _EmployeeBO = new EmployeeBO(new EmployeeConverter());
            bool hasAdded    = _EmployeeBO.CreateEntiy(_EmployeeDto);
            var  dbResult    = _EmployeeBO.FindEnties(1, 10);

            Assert.NotNull(dbResult);
            Assert.True(dbResult.Count > 0);
        }
Beispiel #2
0
        public void TestFindEnties(EmployeeDto _EmployeeDto)
        {
            var  _EmployeeBO = new EmployeeBO(new EmployeeConverter());
            bool hasAdded    = _EmployeeBO.CreateEntiy(_EmployeeDto);
            var  dbResult    = _EmployeeBO.FindEnties(new PagedList <EmployeeDto> {
                _EmployeeDto
            });

            Assert.NotNull(dbResult);
            Assert.True(dbResult.Total > 0);
        }