public void TestGetEntiyByPK(Int32 pkid)
 {
     var _EmployeeBO = new EmployeeBO(new FakeEmployeeConverter());
     var dtoEntity=new EmployeeDto(){EmployeeID=pkid};
     var dbResult = _EmployeeBO.GetEntiyByPK(dtoEntity);
     Assert.NotNull(dbResult);
 }
        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);
 }
 public void TestDeleteEntiy(EmployeeDto _EmployeeDto)
 {
     var _EmployeeBO = new EmployeeBO(new FakeEmployeeConverter());
     bool isDeleted = _EmployeeBO.DeleteEntiy(_EmployeeDto);
     Assert.True(isDeleted);
 }
 public void TestUpdateWithAttachEntiy(EmployeeDto _EmployeeDto)
 {
     var _EmployeeBO = new EmployeeBO(new FakeEmployeeConverter());
     bool isUpdated = _EmployeeBO.UpdateWithAttachEntiy(_EmployeeDto);
     Assert.True(isUpdated);
 }
 public void TestUpdateEntiyWithGet(EmployeeDto _EmployeeDto)
 {
     var _EmployeeBO = new EmployeeBO(new FakeEmployeeConverter());
     var dbResult = _EmployeeBO.UpdateEntiyWithGet(_EmployeeDto);
     Assert.NotNull(dbResult);
 }