public TestInstanceStrategy(
     ITestScope testScope,
     IConstructorStrategy constructorStrategy)
 {
     _testScope           = testScope;
     _constructorStrategy = constructorStrategy;
 }
 /// <summary>
 /// Returns the Children property expression.
 /// </summary>
 /// <param name="testScope">
 /// The test scope.
 /// </param>
 /// <returns>
 /// The Children property expression
 /// </returns>
 public static Expression <Func <SampleParentEntity, List <SampleChildEntity> > > ChildrenExpression(ITestScope testScope)
 {
     return(p => p.Children.Where(c => c.Name.EndsWith("1")).ToList());
 }
Example #3
0
 protected void GivenTheTestScopeIs(ITestScope testScope)
 {
     SetDependency(testScope);
 }
Example #4
0
 public BigUnitBuilder WithTestScope(ITestScope testScope)
 {
     _bigUnit   = null;
     _testScope = testScope;
     return(this);
 }
Example #5
0
 public BigUnitBuilder()
 {
     _testScope           = new GlobalTestScope();
     _constructorStrategy = new GreedyConstructorStrategy();
 }
Example #6
0
 /// <summary>
 /// Determines whether the specified entity's name equals to "Sample".
 /// </summary>
 /// <param name="scope">
 /// The scope.
 /// </param>
 /// <returns>
 /// True if entity's name equals to "Sample".
 /// </returns>
 public static Expression <Func <SampleEntity, bool> > IsSample(ITestScope scope)
 {
     return(e => e.Name == "Sample");
 }