예제 #1
0
        public BigUnit Build()
        {
            if (_bigUnit == null)
            {
                _bigUnit = new BigUnit(new TestInstanceStrategy(
                                           _testScope,
                                           _constructorStrategy),
                                       new TestInstanceProvider(
                                           _dependencyProvider,
                                           new TypeCache()
                                           )
                                       );
            }

            return(_bigUnit);
        }
예제 #2
0
 public BigUnitBuilder WithConstructorStrategy(IConstructorStrategy constructorStrategy)
 {
     _bigUnit             = null;
     _constructorStrategy = constructorStrategy;
     return(this);
 }
예제 #3
0
 public BigUnitBuilder WithDependencyProvider(IDependencyProvider dependencyProvider)
 {
     _bigUnit            = null;
     _dependencyProvider = dependencyProvider;
     return(this);
 }
예제 #4
0
 public BigUnitBuilder WithTestScope(ITestScope testScope)
 {
     _bigUnit   = null;
     _testScope = testScope;
     return(this);
 }