コード例 #1
0
 public TestInstanceStrategy(
     ITestScope testScope,
     IConstructorStrategy constructorStrategy)
 {
     _testScope           = testScope;
     _constructorStrategy = constructorStrategy;
 }
コード例 #2
0
 /// <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());
 }
コード例 #3
0
ファイル: BigUnitTests.cs プロジェクト: debugosaurus/BigUnits
 protected void GivenTheTestScopeIs(ITestScope testScope)
 {
     SetDependency(testScope);
 }
コード例 #4
0
 public BigUnitBuilder WithTestScope(ITestScope testScope)
 {
     _bigUnit   = null;
     _testScope = testScope;
     return(this);
 }
コード例 #5
0
 public BigUnitBuilder()
 {
     _testScope           = new GlobalTestScope();
     _constructorStrategy = new GreedyConstructorStrategy();
 }
コード例 #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");
 }