コード例 #1
0
        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);
        }
コード例 #2
0
        public void ShouldReturnNullIfNoListingsExists()
        {
            var results = new SoldListingResults();

            Assert.Null(results.LastMoxiWorksID);
        }