@duanenewman, resolves #11 by adding a parameterless overload for RegisterMockType<T>.
It was not possible to pass null as a parameter as suggested, due to the use of the Func<Action<Mock<T>>> as a parameter type, so () => null was used instead. This way the Func is resolved when used but the action that it invokes is null and safely checked against.
@duanenewman, resolves #11 by adding a parameterless overload for
RegisterMockType<T>
.It was not possible to pass
null
as a parameter as suggested, due to the use of theFunc<Action<Mock<T>>>
as a parameter type, so() => null
was used instead. This way theFunc
is resolved when used but the action that it invokes isnull
and safely checked against.