public static ConditionCopyNonLazyBinder FromMock <TContract>(this FactoryFromBinder <TContract> binder) where TContract : class { return(binder.FromInstance(Mock.Of <TContract>())); }
public static ConditionCopyNonLazyBinder FromSubstitute <TContract>(this FactoryFromBinder <TContract> binder) where TContract : class { // return binder.FromInstance(Mock.Of<TContract>()); return(binder.FromInstance(Substitute.For <TContract>())); }