public void Can_add_appsettings()
		{

			var setting = new Setting {Name = "Currencies", SettingValueType = "ShortText", IsMultiValue = true, IsSystem = true};
			var id = setting.SettingId;
			setting.SettingValues.Add(new SettingValue() { ValueType = "ShortText", ShortTextValue = "USD", SettingId = id });
			setting.SettingValues.Add(new SettingValue() { ValueType = "ShortText", ShortTextValue = "EUR", SettingId = id });

			var client = GetRepository();
			client.Add(setting);
			client.UnitOfWork.Commit();

			var checkRepository = GetRepository();
			setting = checkRepository.Settings.Where(x => x.Name == "Currencies").SingleOrDefault();
			Assert.NotNull(setting);
		}
		public void SetProperties(Setting inputItem)
		{
			if (inputItem != null)
			{
				Id = inputItem.SettingId;
				Name = inputItem.Name;

				Value = string.Empty;
				if (inputItem.SettingValues != null)
				{
					foreach (var settingValue in inputItem.SettingValues)
					{
						Value += settingValue.ToString() + " ";
					}
				}

				IsSystem = inputItem.IsSystem;

				OnPropertyChanged("Name");
				OnPropertyChanged("Value");
				OnPropertyChanged("IsSystem");
			}
		}
        public AppConfigSettingOverviewStepViewModel(IRepositoryFactory<IAppConfigRepository> repositoryFactory, IAppConfigEntityFactory entityFactory, Setting item)
            : base(repositoryFactory, entityFactory, item)
		{
		}
		public CreateAppConfigSettingViewModel(IViewModelsFactory<IAppConfigSettingOverviewStepViewModel> vmFactory, Setting item)
		{
            RegisterStep(vmFactory.GetViewModelInstance(new KeyValuePair<string, object>("item", item)));
        }