public ServerSettings() { this.CommunicationSetting = new CommunicationSetting(); this.DataBaseSetting = new DataBaseSetting(); MappingAssembly assembly = new MappingAssembly(); assembly.AssemblyName = "Test"; this.DataBaseSetting.MappingAssemblys.Add(assembly); this.WCFSetting = new WCFSetting(); this.IOCSetting = new IOCSetting(); this.KeyValueSettings = new KeyValueSettings(); this.DomainSetting = new DomainSetting(); //ConfigurationItem item = new ConfigurationItem(); //item.Key = "Domain"; //item.Value = "XXXx"; //item.LifeCycle = "new"; //this.IOCSetting.ConfigurationItems.Add(item); }