@@ -7,7 +7,10 @@ namespace EnsureThat
77{
88 public static class Ensure
99 {
10- internal static readonly ExceptionFactory ExceptionFactory = new ExceptionFactory ( ) ;
10+ /// <summary>
11+ /// Gets or Sets the Exception factory to use.
12+ /// </summary>
13+ public static IExceptionFactory ExceptionFactory { get ; set ; } = new ExceptionFactory ( ) ;
1114
1215 /// <summary>
1316 /// Ensures for objects.
@@ -76,7 +79,7 @@ public static class Ensure
7679 /// <param name="optsFn"></param>
7780 /// <returns></returns>
7881 [ Pure ]
79- public static Param < T > That < T > ( [ NoEnumeration ] T value , string name = null , OptsFn optsFn = null )
82+ public static Param < T > That < T > ( [ NoEnumeration ] T value , string name = null , OptsFn optsFn = null )
8083 => new Param < T > ( name , value , optsFn ) ;
8184
8285 /// <summary>
@@ -90,7 +93,7 @@ public static Param<T> That<T>([NoEnumeration]T value, string name = null, OptsF
9093 /// <param name="optsFn"></param>
9194 /// <returns></returns>
9295 [ Pure ]
93- public static StringParam That ( [ NoEnumeration ] string value , string name = null , OptsFn optsFn = null )
96+ public static StringParam That ( [ NoEnumeration ] string value , string name = null , OptsFn optsFn = null )
9497 => new StringParam ( name , value , optsFn ) ;
9598
9699 /// <summary>
@@ -122,4 +125,4 @@ public static TypeParam ThatTypeFor<T>([NotNull] T value, string name = null, Op
122125 public static TypeParam ThatType ( [ NotNull ] Type value , string name = null , OptsFn optsFn = null )
123126 => new TypeParam ( name , value , optsFn ) ;
124127 }
125- }
128+ }
0 commit comments