<commit_before>﻿using ExtendedXmlSerializer.Configuration;
using ExtendedXmlSerializer.ExtensionModel.References;
// ReSharper disable All

namespace ExtendedXmlSerializer.Tests.ReportedIssues
{
	public sealed class Issue132Tests
	{
		public void Examples()
		{
			new ConfigurationContainer().EnableDeferredReferences()
				.Type<IElement>(t => t.EnableReferences(p => p.Id))
				.Type<Section>(t => t.EnableReferences(p => p.Id))
				.Type<Building>().EnableReferences(p => p.Id)
				                 .Create();


			new ConfigurationContainer()
				.Type<Section>()
				.Member(p=>p.IsSelected, x => x.Name("Selected"))
				.Member(p => p.IsEmpty, x => x.Name("Empty"))
				.Create();

		}

		interface IElement
		{
			string Id { get; }
		}

		sealed class Building : IElement
		{
			public string Id { get; set; }
		}

		sealed class Section : IElement
		{
			public string Id { get; set; }

			public bool IsSelected { get; set; }
			public bool IsEmpty { get; set; }
		}
	}
}<commit_msg>Formatting.<commit_after>﻿using ExtendedXmlSerializer.Configuration;
using ExtendedXmlSerializer.ExtensionModel.References;
// ReSharper disable All

namespace ExtendedXmlSerializer.Tests.ReportedIssues
{
	public sealed class Issue132Tests
	{
		public void Examples()
		{
			new ConfigurationContainer().EnableDeferredReferences()
			                            .Type<IElement>(t => t.EnableReferences(p => p.Id))
			                            .Type<Section>(t => t.EnableReferences(p => p.Id))
			                            .Type<Building>()
			                            .EnableReferences(p => p.Id)
			                            .Create();


			new ConfigurationContainer()
				.Type<Section>()
				.Member(p => p.IsSelected, x => x.Name("Selected"))
				.Member(p => p.IsEmpty, x => x.Name("Empty"))
				.Create();

		}

		interface IElement
		{
			string Id { get; }
		}

		sealed class Building : IElement
		{
			public string Id { get; set; }
		}

		sealed class Section : IElement
		{
			public string Id { get; set; }

			public bool IsSelected { get; set; }
			public bool IsEmpty { get; set; }
		}
	}
}
{'fraction_non_alphanumeric': 0.12648034107058267, 'fraction_numerical': 0.0028422548555187117, 'mean_word_length': 2.549579831932773, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1218182', 'n_tokens_mistral': 759, 'n_tokens_neox': 619, 'n_words': 144}