public void MapRandomTestForDefaults()
        {
            IEnumerable <string> randomPlaceToStay   = this.MakeRandomOutOfOrderPlaceToStay();
            IEnumerable <IEnumerable <string> > data = new List <IEnumerable <string> >()
            {
                randomPlaceToStay, randomPlaceToStay
            };

            List <PlacesToStay> placesToStays = placeToStayMapper.Map(data);

            Assert.IsNotNull(placesToStays);
            Assert.AreEqual(1, placesToStays.Count);

            PlacesToStay toStay = placesToStays.Single();

            string[] arrayedPlaceToStay = randomPlaceToStay.ToArray();

            Assert.AreEqual(0, toStay.Id);
            Assert.AreEqual(0, toStay.CategoryId);
            Assert.AreEqual(0, toStay.CategoryTypeId);
            Assert.AreEqual(arrayedPlaceToStay[3], toStay.City);
            Assert.AreEqual(arrayedPlaceToStay[4], toStay.Region);
            Assert.AreEqual(arrayedPlaceToStay[5], toStay.LocationDescription);
            Assert.AreEqual(arrayedPlaceToStay[6], toStay.Url);
            Assert.AreEqual(0f, toStay.HealthPoints);
            Assert.AreEqual(0, toStay.GreenKeyRating);
            Assert.AreEqual(arrayedPlaceToStay[9], toStay.Status);
            Assert.AreEqual(0, toStay.RevisionNumber);
            Assert.AreEqual(DateTime.MinValue, toStay.OriginalPublishedDate);
            Assert.AreEqual(arrayedPlaceToStay[12], toStay.LinkName);
            Assert.AreEqual(arrayedPlaceToStay[13], toStay.ClientId);
            Assert.AreEqual(arrayedPlaceToStay[14], toStay.Name);
            Assert.AreEqual(false, toStay.IsDataProvider);
        }
        public void MapRandomTest()
        {
            IEnumerable <string> randomPlaceToStay   = this.MakeRandomPlaceToStay();
            IEnumerable <IEnumerable <string> > data = new List <IEnumerable <string> >()
            {
                randomPlaceToStay, randomPlaceToStay
            };

            List <PlacesToStay> placesToStays = placeToStayMapper.Map(data);

            Assert.IsNotNull(placesToStays);
            Assert.AreEqual(1, placesToStays.Count);

            PlacesToStay toStay = placesToStays.Single();

            string[] arrayedPlaceToStay = randomPlaceToStay.ToArray();

            Assert.AreEqual(arrayedPlaceToStay[0], toStay.Id.ToString());
            Assert.AreEqual(arrayedPlaceToStay[1], toStay.CategoryId.ToString());
            Assert.AreEqual(arrayedPlaceToStay[2], toStay.CategoryTypeId.ToString());
            Assert.AreEqual(arrayedPlaceToStay[3], toStay.City);
            Assert.AreEqual(arrayedPlaceToStay[4], toStay.Region);
            Assert.AreEqual(arrayedPlaceToStay[5], toStay.LocationDescription);
            Assert.AreEqual(arrayedPlaceToStay[6], toStay.Url);
            Assert.AreEqual(arrayedPlaceToStay[7], toStay.HealthPoints.ToString());
            Assert.AreEqual(arrayedPlaceToStay[8], toStay.GreenKeyRating.ToString());
            Assert.AreEqual(arrayedPlaceToStay[9], toStay.Status);
            Assert.AreEqual(arrayedPlaceToStay[10], toStay.RevisionNumber.ToString());
            Assert.AreEqual(arrayedPlaceToStay[11], toStay.OriginalPublishedDate.ToString());
            Assert.AreEqual(arrayedPlaceToStay[12], toStay.LinkName);
            Assert.AreEqual(arrayedPlaceToStay[13], toStay.ClientId);
            Assert.AreEqual(arrayedPlaceToStay[14], toStay.Name);
            Assert.AreEqual(arrayedPlaceToStay[15], toStay.IsDataProvider.ToString());
        }