public void GetListTest() { int ownerId = 3999999; Address_Owner_Type ownerType = Address_Owner_Type.个人用户; ConsigneeProvider provider = new ConsigneeProvider(); List <Winner.Consignee.Entities.AddressInfo> list = provider.List(ownerId, ownerType); Assert.IsTrue(list != null && list.Count > 0); }
/// <summary> /// 查询所有收货地址 /// </summary> /// <param name="OwnerId"></param> /// <param name="OwnerType"></param> /// <returns></returns> public ActionResult List(int OwnerId, int OwnerType) { if (OwnerType == (int)Address_Owner_Type.个人用户) { OwnerId = Package.UserId; } ConsigneeProvider provider = new ConsigneeProvider(); provider.ChangePage = this.ChangePage(); var list = provider.List(OwnerId, (Address_Owner_Type)OwnerType); return(SuccessResultList(list, provider.ChangePage)); }