Skip to content

Commit 38f4020

Browse files
committed
Renaming interface for consistency
1 parent abf06eb commit 38f4020

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

AgileMapper/Api/IPlanTargetTypeAndRuleSetSelector.cs renamed to AgileMapper/Api/IPlanTargetAndRuleSetSelector.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/// <typeparam name="TSource">
1313
/// The type of source object from which the mapping function to be created will be performed.
1414
/// </typeparam>
15-
public interface IPlanTargetTypeAndRuleSetSelector<TSource>
15+
public interface IPlanTargetAndRuleSetSelector<TSource>
1616
{
1717
/// <summary>
1818
/// Create and compile mapping functions for a create new mapping from the source type being

AgileMapper/Api/PlanTargetSelector.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
internal class PlanTargetSelector<TSource> :
1111
IPlanTargetSelector<TSource>,
12-
IPlanTargetTypeAndRuleSetSelector<TSource>
12+
IPlanTargetAndRuleSetSelector<TSource>
1313
{
1414
private readonly MapperContext _mapperContext;
1515

AgileMapper/IMapper.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ public interface IMapper : IDisposable
2525
/// An instance specifying the source type for which a mapping plan should be created.
2626
/// </param>
2727
/// <returns>
28-
/// An IPlanTargetTypeAndRuleSetSelector with which to specify the type of mapping the functions for which
28+
/// An IPlanTargetAndRuleSetSelector with which to specify the type of mapping the functions for which
2929
/// should be cached.
3030
/// </returns>
31-
IPlanTargetTypeAndRuleSetSelector<TSource> GetPlanFor<TSource>(TSource exampleInstance);
31+
IPlanTargetAndRuleSetSelector<TSource> GetPlanFor<TSource>(TSource exampleInstance);
3232

3333
/// <summary>
3434
/// Create and compile mapping functions for a particular type of mapping of the source type
3535
/// specified by the type argument.
3636
/// </summary>
3737
/// <typeparam name="TSource">The source type for which to create the mapping functions.</typeparam>
3838
/// <returns>
39-
/// An IPlanTargetTypeAndRuleSetSelector with which to specify the type of mapping the functions for which
39+
/// An IPlanTargetAndRuleSetSelector with which to specify the type of mapping the functions for which
4040
/// should be cached.
4141
/// </returns>
42-
IPlanTargetTypeAndRuleSetSelector<TSource> GetPlanFor<TSource>();
42+
IPlanTargetAndRuleSetSelector<TSource> GetPlanFor<TSource>();
4343

4444
/// <summary>
4545
/// Create and compile mapping functions for mapping from the source type specified by the given

AgileMapper/Mapper.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ private Mapper(MapperContext context)
4444
/// An instance specifying the source type for which a mapping plan should be created.
4545
/// </param>
4646
/// <returns>
47-
/// An IPlanTargetTypeAndRuleSetSelector with which to specify the type of mapping the functions for which
47+
/// An IPlanTargetAndRuleSetSelector with which to specify the type of mapping the functions for which
4848
/// should be cached.
4949
/// </returns>
50-
public static IPlanTargetTypeAndRuleSetSelector<TSource> GetPlanFor<TSource>(TSource exampleInstance) => GetPlanFor<TSource>();
50+
public static IPlanTargetAndRuleSetSelector<TSource> GetPlanFor<TSource>(TSource exampleInstance) => GetPlanFor<TSource>();
5151

5252
/// <summary>
5353
/// Create and compile mapping functions for a particular type of mapping of the source type
5454
/// specified by the type argument.
5555
/// </summary>
5656
/// <typeparam name="TSource">The source type for which to create the mapping functions.</typeparam>
5757
/// <returns>
58-
/// An IPlanTargetTypeAndRuleSetSelector with which to specify the type of mapping the functions for which
58+
/// An IPlanTargetAndRuleSetSelector with which to specify the type of mapping the functions for which
5959
/// should be cached.
6060
/// </returns>
61-
public static IPlanTargetTypeAndRuleSetSelector<TSource> GetPlanFor<TSource>() => Default.GetPlanFor<TSource>();
61+
public static IPlanTargetAndRuleSetSelector<TSource> GetPlanFor<TSource>() => Default.GetPlanFor<TSource>();
6262

6363
/// <summary>
6464
/// Create and compile mapping functions for mapping from the source type specified by the given
@@ -170,9 +170,9 @@ public static dynamic Flatten<TSource>(TSource source) where TSource : class
170170

171171
internal MapperContext Context { get; }
172172

173-
IPlanTargetTypeAndRuleSetSelector<TSource> IMapper.GetPlanFor<TSource>(TSource exampleInstance) => GetPlan<TSource>();
173+
IPlanTargetAndRuleSetSelector<TSource> IMapper.GetPlanFor<TSource>(TSource exampleInstance) => GetPlan<TSource>();
174174

175-
IPlanTargetTypeAndRuleSetSelector<TSource> IMapper.GetPlanFor<TSource>() => GetPlan<TSource>();
175+
IPlanTargetAndRuleSetSelector<TSource> IMapper.GetPlanFor<TSource>() => GetPlan<TSource>();
176176

177177
IPlanTargetSelector<TSource> IMapper.GetPlansFor<TSource>(TSource exampleInstance) => GetPlan<TSource>();
178178

0 commit comments

Comments
 (0)