public void ShouldReturnTheLastMoxiWorksListingId() { var results = new SoldListingResults(); var listings = new List <SoldListing>(); for (var i = 0; i < 100; i++) { var l = new SoldListing { MoxiWorksListingId = i.ToString() }; listings.Add(l); } results.Listings = listings; Assert.Matches(results.LastMoxiWorksID, results.Listings[99].MoxiWorksListingId); }
public void ShouldReturnNullIfNoListingsExists() { var results = new SoldListingResults(); Assert.Null(results.LastMoxiWorksID); }