public void TestInitialize()
        {
            var touristSpot = new TouristSpot()
            {
                Id                    = 1,
                Name                  = "name",
                Description           = "description",
                Image                 = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 },
                Region                = null,
                TouristSpotCategories = new List <TouristSpotCategory>()
            };

            Lodging = new Lodging()
            {
                Id                  = 1,
                Name                = "Name",
                Description         = "Description",
                Rating              = 3,
                IsFull              = true,
                PricePerNight       = 100,
                Address             = "Valid Address 123",
                Phone               = "+598 98 303 040",
                ConfirmationMessage = "Your reservation has been confirmed!",
                TouristSpot         = touristSpot
            };

            LodgingImage = new LodgingImage
            {
                Id        = 1,
                LodgingId = Lodging.Id,
                Lodging   = Lodging,
                ImageData = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }
            };
        }
Example #2
0
        public void TestInitialize()
        {
            var region = new Region()
            {
                Id   = 1,
                Name = "RegionName"
            };

            var touristSpot = new TouristSpot()
            {
                Id                    = 1,
                Name                  = "name",
                Description           = "description",
                Image                 = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 },
                Region                = region,
                TouristSpotCategories = new List <TouristSpotCategory>()
            };

            var lodgingImage = new LodgingImage
            {
                Id        = 1,
                LodgingId = 1,
                ImageData = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }
            };

            Lodging = new Lodging()
            {
                Id          = 1,
                Name        = "Name",
                Description = "Description",
                Rating      = 3,
                IsFull      = true,
                Images      = new List <LodgingImage>()
                {
                    lodgingImage
                },
                PricePerNight       = 100,
                Address             = "Valid Address 123",
                Phone               = "+598 98 303 040",
                ConfirmationMessage = "Your reservation has been confirmed!",
                TouristSpot         = touristSpot,
                ReviewAverage       = 5,
                ReviewsQuantity     = 1
            };
            LodgingSearchBasicInfoModel = new LodgingSearchBasicInfoModel(Lodging);
        }
 public LodgingImageBasicInfoModel(LodgingImage lodgingImage)
 {
     Id        = lodgingImage.Id;
     ImageData = lodgingImage.ImageData;
 }