public static ScopeConcreteIdArgConditionCopyNonLazyBinder FromMock <TContract>(this FromBinderGeneric <TContract> binder) where TContract : class { #if UNITY_EDITOR && !UNITY_WEBPLAYER return(binder.FromInstance(Mock.Of <TContract>())); #else Assert.That(false, "The use of 'ToMock' in web builds is not supported"); return(null); #endif }
public ScopeNonLazyBinder FromInstance(TContract instance) { _subBinder.FromInstance(instance); return(new ScopeNonLazyBinder(_info)); }