private static LocalizedRealEstateType[] BuildLocalizedTypesOfAccommodations(
            IDictionary <int, string> expediaIdsToNames,
            IReadOnlyDictionary <int, int> typesOfAccommodationsExpediaIdsToIds,
            int languageId,
            int creatorId
            )
        {
            var localizedTypesOfAccommodations = new Queue <LocalizedRealEstateType>();

            foreach (var propertyType in expediaIdsToNames)
            {
                if (!typesOfAccommodationsExpediaIdsToIds.TryGetValue(propertyType.Key, out var id))
                {
                    continue;
                }

                var localizedTypeOfAccommodation = new LocalizedRealEstateType
                {
                    Id         = id,
                    LanguageId = languageId,
                    Name       = propertyType.Value,
                    CreatorId  = creatorId
                };

                localizedTypesOfAccommodations.Enqueue(localizedTypeOfAccommodation);
            }
            return(localizedTypesOfAccommodations.ToArray());
        }
        public void Name()
        {
            //Arrange
            const string name = "Some Name";

            //Act
            var localization = new LocalizedRealEstateType
            {
                Name = name
            };

            //Assert
            Assert.AreEqual(name, localization.Name);
        }
        public void Type()
        {
            //Arrange
            var type = new RealEstateType();

            //Act
            var localization = new LocalizedRealEstateType
            {
                Type = type
            };

            //Assert
            Assert.AreSame(type, localization.Type);
        }