Esempio n. 1
0
        public LazyBehaviorTest()
        {
            this.lazyBehavior = new Mock<IBehavior<ICustomExtension>>();

            this.testee = new LazyBehavior<ICustomExtension>(() => this.DelayCreation());
        }
Esempio n. 2
0
 public static LazySource <T> New <T>(LazyBehavior behavior)
     where T : new()
 {
     return(new LazySource <T>(behavior, () => new T()));
 }