public List <dm.Listing> ListofListing(CreateNewListingViewModel listing) { var listingitem = ListingHelper.GetallListingsByListingId(listing.ListingId); foreach (var item in listingitem) { createModel.MappingListing(item); } return(listingitem); }
public void Test_GetAllListingByListingId() { var sut = ListingHelper.GetallListingsByListingId(listing2.ListingId); Assert.NotEmpty(sut); }