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); }
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); }
public void TestAdd(EmployeeDto _EmployeeDto) { var _EmployeeBO = new EmployeeBO(new FakeEmployeeConverter()); bool hasAdded=_EmployeeBO.CreateEntiy(_EmployeeDto); Assert.True(hasAdded); }