public void TestSerializeConfiguration()
 {
     var config = new ConfigurationContainer();
     config.Global = new List<ConfigurationEntry>
     {
         new ConfigurationEntry {Key = "maximum_orderposition_amount", Value = "50000"},
         new ConfigurationEntry { Key = "another_configuration_entry", Value = "anothervalue"},
         new ConfigurationEntry{ Key = "settings_flyout_developer_available", Value = "false"}
     };
     config.Roles = new List<RoleConfigurationContainer>
     {
         new RoleConfigurationContainer{ Role = "developer", Entries = new List<ConfigurationEntry>
         {
             new ConfigurationEntry{ Key = "settings_flyout_developer_available", Value = "true"}
         }}
     };
     var configManager = new AppConfigurationManager();
     var result = configManager.SerializeConfiguration(config);
     Trace.WriteLine("Trace: "+result);
     Assert.IsNotNull(result);
 }
 public string SerializeConfiguration(ConfigurationContainer container)
 {
     return JsonConvert.SerializeObject(container, Formatting.Indented);
 }