public void TestGetEntiyByPK(Int32 pkid)
 {
     var _EmployeePayHistoryBO = new EmployeePayHistoryBO(new FakeEmployeePayHistoryConverter());
     var dtoEntity=new EmployeePayHistoryDto(){EmployeeID=pkid};
     var dbResult = _EmployeePayHistoryBO.GetEntiyByPK(dtoEntity);
     Assert.NotNull(dbResult);
 }
        public void TestFindEnties(EmployeePayHistoryDto _EmployeePayHistoryDto)
        {
            var _EmployeePayHistoryBO = new EmployeePayHistoryBO(new EmployeePayHistoryConverter());
		    bool hasAdded = _EmployeePayHistoryBO.CreateEntiy(_EmployeePayHistoryDto);
            var dbResult=_EmployeePayHistoryBO.FindEnties(new PagedList<EmployeePayHistoryDto> {_EmployeePayHistoryDto});
            Assert.NotNull(dbResult);
			Assert.True(dbResult.Total>0);
        }
        public void TestFindEntiesWithSimplePaging(EmployeePayHistoryDto _EmployeePayHistoryDto)
        {
             var _EmployeePayHistoryBO = new EmployeePayHistoryBO(new EmployeePayHistoryConverter());
			bool hasAdded = _EmployeePayHistoryBO.CreateEntiy(_EmployeePayHistoryDto);
            var dbResult = _EmployeePayHistoryBO.FindEnties(1, 10);
            Assert.NotNull(dbResult);
			Assert.True(dbResult.Count>0);
        }
 public void TestAdd(EmployeePayHistoryDto _EmployeePayHistoryDto)
 {
     var _EmployeePayHistoryBO = new EmployeePayHistoryBO(new FakeEmployeePayHistoryConverter());
     bool hasAdded=_EmployeePayHistoryBO.CreateEntiy(_EmployeePayHistoryDto);
     Assert.True(hasAdded);
 }
 public void TestDeleteEntiy(EmployeePayHistoryDto _EmployeePayHistoryDto)
 {
     var _EmployeePayHistoryBO = new EmployeePayHistoryBO(new FakeEmployeePayHistoryConverter());
     bool isDeleted = _EmployeePayHistoryBO.DeleteEntiy(_EmployeePayHistoryDto);
     Assert.True(isDeleted);
 }
 public void TestUpdateWithAttachEntiy(EmployeePayHistoryDto _EmployeePayHistoryDto)
 {
     var _EmployeePayHistoryBO = new EmployeePayHistoryBO(new FakeEmployeePayHistoryConverter());
     bool isUpdated = _EmployeePayHistoryBO.UpdateWithAttachEntiy(_EmployeePayHistoryDto);
     Assert.True(isUpdated);
 }
 public void TestUpdateEntiyWithGet(EmployeePayHistoryDto _EmployeePayHistoryDto)
 {
     var _EmployeePayHistoryBO = new EmployeePayHistoryBO(new FakeEmployeePayHistoryConverter());
     var dbResult = _EmployeePayHistoryBO.UpdateEntiyWithGet(_EmployeePayHistoryDto);
     Assert.NotNull(dbResult);
 }