예제 #1
0
        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
        }
예제 #2
0
 public ScopeNonLazyBinder FromInstance(TContract instance)
 {
     _subBinder.FromInstance(instance);
     return(new ScopeNonLazyBinder(_info));
 }