public void GetByEntityId_Should_Return_Created_Settings()
        {
            var localizationSettings = Fixture.Create <LocalizationSettingsData>();

            _localizationSettingsRepository.Insert(localizationSettings);

            LocalizationSettingsData createdLocalizationSettings = _localizationSettingsRepository.GetByEntityId(localizationSettings.EntityId);

            _localizationSettingsRepository.Delete(createdLocalizationSettings.EntityId);

            Assert.IsTrue(Comparer.Compare(localizationSettings, createdLocalizationSettings));
        }
        public void GetByEntityId_Should_Return_Created_Settings()
        {
            var localizationSettings = Fixture.Build <LocalizationSettingsData>()
                                       .With(p => p.Formattings, null)
                                       .With(p => p.Localizations, null)
                                       .Create();

            _localizationSettingsRepository.Insert(localizationSettings);

            LocalizationSettingsData createdLocalizationSettings = _localizationSettingsRepository.GetByEntityId(localizationSettings.EntityId);

            _localizationSettingsRepository.Delete(createdLocalizationSettings);

            createdLocalizationSettings.Localizations = null;

            Assert.IsTrue(Comparer.Compare(localizationSettings, createdLocalizationSettings));
        }