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()); }
protected void GivenTheTestScopeIs(ITestScope testScope) { SetDependency(testScope); }
public BigUnitBuilder WithTestScope(ITestScope testScope) { _bigUnit = null; _testScope = testScope; return(this); }
public BigUnitBuilder() { _testScope = new GlobalTestScope(); _constructorStrategy = new GreedyConstructorStrategy(); }
/// <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"); }