Skip to content

Commit aec41bd

Browse files
Merge 5adba30 into e1a4430
2 parents e1a4430 + 5adba30 commit aec41bd

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

src/ExtendedXmlSerializer/ExtensionModel/Xml/MigrationsExtension.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@
1919

2020
namespace ExtendedXmlSerializer.ExtensionModel.Xml
2121
{
22-
sealed class MigrationsExtension : TypedTable<IEnumerable<Action<XElement>>>, ISerializerExtension
22+
/// <summary>
23+
/// This extension is meant for internal use, but has been exposed for extension authors who require access to it.
24+
/// </summary>
25+
/// <seealso href="https://github.com/ExtendedXmlSerializer/home/issues/483" />
26+
public sealed class MigrationsExtension : TypedTable<IEnumerable<Action<XElement>>>, ISerializerExtension
2327
{
28+
/// <inheritdoc />
2429
[UsedImplicitly]
2530
public MigrationsExtension() : this(new Dictionary<TypeInfo, IEnumerable<Action<XElement>>>()) {}
2631

32+
/// <inheritdoc />
2733
public MigrationsExtension(IDictionary<TypeInfo, IEnumerable<Action<XElement>>> store) : base(store) {}
2834

35+
/// <inheritdoc />
2936
public IServiceRepository Get(IServiceRepository parameter) => parameter.Decorate<IContents>(Register);
3037

3138
IContents Register(IServiceProvider services, IContents contents)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using ExtendedXmlSerializer.Configuration;
2+
using ExtendedXmlSerializer.ExtensionModel.Xml;
3+
using FluentAssertions;
4+
using Xunit;
5+
6+
namespace ExtendedXmlSerializer.Tests.ReportedIssues
7+
{
8+
public sealed class Issue483Tests
9+
{
10+
[Fact]
11+
public void Verify()
12+
{
13+
new ConfigurationContainer().Type<Issue483Tests>().Root.With<MigrationsExtension>().Should().NotBeNull();
14+
15+
}
16+
17+
18+
}
19+
}

0 commit comments

Comments
 (0)