public void TestGetEntiyByPK(Int32 pkid) { var _AddressBO = new AddressBO(new FakeAddressConverter()); var dtoEntity=new AddressDto(){AddressID=pkid}; var dbResult = _AddressBO.GetEntiyByPK(dtoEntity); Assert.NotNull(dbResult); }
public void TestFindEnties(AddressDto _AddressDto) { var _AddressBO = new AddressBO(new AddressConverter()); bool hasAdded = _AddressBO.CreateEntiy(_AddressDto); var dbResult=_AddressBO.FindEnties(new PagedList<AddressDto> {_AddressDto}); Assert.NotNull(dbResult); Assert.True(dbResult.Total>0); }
public void TestFindEntiesWithSimplePaging(AddressDto _AddressDto) { var _AddressBO = new AddressBO(new AddressConverter()); bool hasAdded = _AddressBO.CreateEntiy(_AddressDto); var dbResult = _AddressBO.FindEnties(1, 10); Assert.NotNull(dbResult); Assert.True(dbResult.Count>0); }
public void TestAdd(AddressDto _AddressDto) { var _AddressBO = new AddressBO(new FakeAddressConverter()); bool hasAdded=_AddressBO.CreateEntiy(_AddressDto); Assert.True(hasAdded); }
public void TestDeleteEntiy(AddressDto _AddressDto) { var _AddressBO = new AddressBO(new FakeAddressConverter()); bool isDeleted = _AddressBO.DeleteEntiy(_AddressDto); Assert.True(isDeleted); }
public void TestUpdateWithAttachEntiy(AddressDto _AddressDto) { var _AddressBO = new AddressBO(new FakeAddressConverter()); bool isUpdated = _AddressBO.UpdateWithAttachEntiy(_AddressDto); Assert.True(isUpdated); }
public void TestUpdateEntiyWithGet(AddressDto _AddressDto) { var _AddressBO = new AddressBO(new FakeAddressConverter()); var dbResult = _AddressBO.UpdateEntiyWithGet(_AddressDto); Assert.NotNull(dbResult); }