File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
src/ExtendedXmlSerializer/ExtensionModel/Xml
test/ExtendedXmlSerializer.Tests.ReportedIssues Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 19
19
20
20
namespace ExtendedXmlSerializer . ExtensionModel . Xml
21
21
{
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
23
27
{
28
+ /// <inheritdoc />
24
29
[ UsedImplicitly ]
25
30
public MigrationsExtension ( ) : this ( new Dictionary < TypeInfo , IEnumerable < Action < XElement > > > ( ) ) { }
26
31
32
+ /// <inheritdoc />
27
33
public MigrationsExtension ( IDictionary < TypeInfo , IEnumerable < Action < XElement > > > store ) : base ( store ) { }
28
34
35
+ /// <inheritdoc />
29
36
public IServiceRepository Get ( IServiceRepository parameter ) => parameter . Decorate < IContents > ( Register ) ;
30
37
31
38
IContents Register ( IServiceProvider services , IContents contents )
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments